Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 09:14:33 pm
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)POLYGONS to TRIANGLES
Pages: [1]
Print
Author Topic: POLYGONS to TRIANGLES  (Read 2701 times)
Villox
Just dropped in

Offline Offline

Posts: 2


View Profile Email
« on: 02. April 2007, 10:00:07 am »

Hi,

I want to develop an OBJ to COLLADA converter in order to show 3d contents in Google Earth.
By using the Xith library, I have built the OBJ to COLLADA converter but Google Earth doesn't show the converted file because it doesn't support the <polygon> and <polylist> tags.
So how can I convert the <polygon> and <polylist> tags to the <triangles> tag?

Villox
 
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Online Online

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 02. April 2007, 10:17:49 am »

I want to develop an OBJ to COLLADA converter in order to show 3d contents in Google Earth.
By using the Xith library, I have built the OBJ to COLLADA converter but Google Earth doesn't show the converted file because it doesn't support the <polygon> and <polylist> tags.
So how can I convert the <polygon> and <polylist> tags to the <triangles> tag?

Hi, Villox. Welcome to Xith3D Smiley.

Unfortunately I have no idea of the COLLADA format. I just wanted to tell you, that Amos Wenger is currently investigating the COLLADA format. Sou you should wait a few hours until he comes back. Then he can probably tell you something about it.

btw. Did you consider using blender to convert from OBJ to COLLADA?

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 02. April 2007, 11:34:34 am »

Hi,

I want to develop an OBJ to COLLADA converter in order to show 3d contents in Google Earth.
By using the Xith library, I have built the OBJ to COLLADA converter but Google Earth doesn't show the converted file because it doesn't support the <polygon> and <polylist> tags.
So how can I convert the <polygon> and <polylist> tags to the <triangles> tag?
Hi Villox : as Marvin, said you'd probably better use Blender3D for conversion anyway.

That said, I cannot help you with the COLLADA lib which is currently in xith-tk because I haven't made it and I don't want to investigate it.

I'm currently making a COLLADA loader myself (primarily for Xith3D, but can also be used with any other scenegraph/lib if you want to implement the graphic part). Unfortunately (for you) it won't export, just import. Personally I don't see why an engine (like Xith3D) should export some graphic file format at all (except if there's a 3D modeler part of the package, which may be a good idea (I said "may")).

SO as I and Marvin said you'd better use Blender.
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 02. April 2007, 12:18:38 pm »

If you still awnt to go with Whoola COLLADA : you'll need Triangulation : http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html

And triangles element have only one p element.
Logged
Villox
Just dropped in

Offline Offline

Posts: 2


View Profile Email
« Reply #4 on: 04. April 2007, 07:47:40 am »

Thanks a lot
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #5 on: 04. April 2007, 03:55:50 pm »

Thanks a lot
You're welcome Smiley
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic