Question on linestrips

Hello everyone. I’m new to collada, but it seems like quite an interesting way of doing things.

I’m looking into linestrips and I’ve run into some problems. When I take examples and convert them from let’s say polygons to linestrips (and turn the count into 1), it doesn’t display anything in a viewer.
(On a note. I’m using the viewer from pinecoast. I tried to use the one from feeling software, but they haven’t heard back from them.)
I’ll post the code below and hopefully someone has an idea of what in the world I’m doing wrong.


<?xml version="1.0" encoding="utf-8"?>
<COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/COLLADASchema">
	<asset>
		<contributor>
			<author>Illusoft Collada 1.4.0 plugin for Blender - http://colladablender.illusoft.com</author>
			<authoring_tool>Blender v:243 - Illusoft Collada Exporter v:0.3.146</authoring_tool>
			<comments></comments>
			<copyright></copyright>
			<source_data>file://C:/Program%20Files/Blender%20Foundation/Blender/.blender/untitled.blend</source_data>
		</contributor>
		<created>2007-04-13T10:36:55.437000</created>
		<modified>2007-04-13T10:36:55.437000</modified>
		<unit meter="0.01" name="centimeter"/>
		<up_axis>Z_UP</up_axis>
	</asset>
	<library_effects>
		<effect id="effect01">
			<profile_COMMON>
				<technique sid="blender">
					<phong>
						<emission>
							<color>0.50000 0.30000 0.80000 1</color>
						</emission>
						<ambient>
							<color>0.40000 0.40000 0.40000 1</color>
						</ambient>
						<diffuse>
							<color>0.80000 0.80000 0.80000 1</color>
						</diffuse>
						<specular>
							<color>0.50000 0.50000 0.50000 1</color>
						</specular>
						<shininess>
							<float>12.5</float>
						</shininess>
						<reflective>
							<color>1.00000 1.00000 1.00000 1</color>
						</reflective>
						<reflectivity>
							<float>0.8</float>
						</reflectivity>
						<transparent>
							<color>1 1 1 1</color>
						</transparent>
						<transparency>
							<float>0.0</float>
						</transparency>
					</phong>
				</technique>
			</profile_COMMON>
		</effect>
	</library_effects>
	<library_materials>
		<material id="Material" name="Material">
			<instance_effect url="#"/>
		</material>
	</library_materials>
	<library_geometries>

		<geometry id="Cube-Geometry" name="Cube-Geometry">
			<mesh>
				<source id="Cube-Geometry-Position">
					<float_array count="24" id="Cube-Geometry-Position-array">1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000 1.00000 1.00000 -1.00000 1.00000 -1.00000 -1.00000 1.00000 -1.00000 1.00000 1.00000</float_array>
					<technique_common>
						<accessor count="8" source="#Cube-Geometry-Position-array" stride="3">
							<param type="float" name="X"></param>
							<param type="float" name="Y"></param>
							<param type="float" name="Z"></param>
						</accessor>
					</technique_common>
				</source>
				<source id="Cube-Geometry-Normals">
					<float_array count="18" id="Cube-Geometry-Normals-array">0.00000 0.00000 -1.00000 0.00000 0.00000 1.00000 1.00000 -0.00000 0.00000 -0.00000 -1.00000 -0.00000 -1.00000 0.00000 -0.00000 0.00000 1.00000 0.00000</float_array>
					<technique_common>
						<accessor count="6" source="#Cube-Geometry-Normals-array" stride="3">
							<param type="float" name="X"></param>
							<param type="float" name="Y"></param>
							<param type="float" name="Z"></param>
						</accessor>
					</technique_common>
				</source>
				<vertices id="Cube-Geometry-Vertex">
					<input semantic="POSITION" source="#Cube-Geometry-Position"/>
				</vertices>
				<linestrips count="1" material="Material">
					<input offset="0" semantic="VERTEX" source="#Cube-Geometry-Vertex"/>
					<input offset="1" semantic="NORMAL" source="#Cube-Geometry-Normals"/>
					

0 0 1 0 2 0 2 0 3 0 0 0 4 1 7 1 6 1 6 1 5 1 4 1 0 2 4 2 5 2 5 2 1 2 0 2 1 3 5 3 6 3 6 3 2 3 1 3 2 4 6 4 7 4 7 4 3 4 2 4 4 5 0 5 3 5 3 5 7 5 4 5</p>
				</linestrips>
			</mesh>
		</geometry>
	</library_geometries>
	<library_visual_scenes>
		<visual_scene id="Scene" name="Scene">
			<node layer="L1" id="Cube" name="Cube">
				<translate sid="translate">0.00000 0.00000 0.00000</translate>
				<rotate sid="rotateZ">0 0 1 0.00000</rotate>
				<rotate sid="rotateY">0 1 0 0.00000</rotate>
				<rotate sid="rotateX">1 0 0 0.00000</rotate>
				<scale sid="scale">1.00000 1.00000 1.00000</scale>
				<instance_geometry url="#Cube-Geometry">
					<bind_material>
						<technique_common>
							<instance_material symbol="Material" target="#Material">
								<bind_vertex_input input_semantic="TEXCOORD" input_set="1" semantic="CHANNEL1"/>
							</instance_material>
						</technique_common>
					</bind_material>
				</instance_geometry>
			</node>
		</visual_scene>
	</library_visual_scenes>
	<library_physics_models>
		<physics_model id="Scene-PhysicsModel" name="Scene-PhysicsModel"/>
	</library_physics_models>
	<scene>
		<instance_visual_scene url="#Scene"/>
	</scene>
</COLLADA>

Any help would be appreciated. I bought the book and I’m in the middle of reading it, but I learn best from reading code.

I would guess it only displays trigs and polys, not lines.

Most of my models either don’t load or come in black, so it’s hard to see anything at all.

When I take examples and convert them from let’s say polygons to linestrips (and turn the count into 1), it doesn’t display anything in a viewer.

FYI - there is a polygon to line converter in the Refinery package.

I do not know of a lot of packages/viewer supporting line at this time. I know that google earth has support for lines, did you try it ? (simply drag and drop your models in google earth viewer)

I was having issues with it, but I think that’s on my side.