GLBasic forum

Codesnippets => 3D-snippets => Topic started by: mentalthink on 2013-Feb-13

Title: Translating from Cinema 4d to Glbasic
Post by: mentalthink on 2013-Feb-13
Hi there it's a simple translation, but just I find the mode to put data from Cinema 4d to Glbasic, really not it's too much complex and I find the mode to recreate from the cinema 4d viewport to GLbasic...

Now I only have to look in Python SDK of C4d and try to make a list of the array or vertex of the meshes and put in ordner into GLBasic...

In this image  I trasnlate a simple decaedron, only just fail the last face... I suppose I have to close manually or simple I forgot some array...

[attachment deleted by admin]
Title: Re: Translating from Cinema 4d to Glbasic
Post by: erico on 2013-Feb-13
Great!

Is that a python script?
Title: Re: Translating from Cinema 4d to Glbasic
Post by: mentalthink on 2013-Feb-13
No erico, I only get the data, GLbasic can export a simple txt file ... But the good thing it's undertand how do it?¿, because the faces have a number that's indicates the ordner how draw the polys...

Now I have to learn how get the vertex data from a mesh, put into an array and make a file from C4d , I read a about save data into a file and you can storage data... I think it's only question of time I can make this... I'm not sure if I will do succesfully, but I try...
Title: Re: Translating from Cinema 4d to Glbasic
Post by: Kitty Hello on 2013-Feb-13
search for the "dda" file format on the forums. It's an ascii file that GLBasic can easily read.
Title: Re: Translating from Cinema 4d to Glbasic
Post by: mentalthink on 2013-Feb-13
Yes Gennot I try to look, but for now I have to know how get the vertex data and export from cinema... I think not it's too much complex , but for know I write commands and don't runs...  :-[ :-[

This it's a thing I want do, it's a goal for me!!! I take in advice about this...
Title: Re: Translating from Cinema 4d to Glbasic
Post by: Schranz0r on 2013-Feb-13
dda-Files are to big :/

If you have a milkshapefile with ~100 kb  and use the 3dConverter then the DDA or DDW file is about 1mb...
depends on how complex that model in Milkshape look like :) 
Title: Re: Translating from Cinema 4d to Glbasic
Post by: sf-in-sf on 2013-Oct-13
Easy: export the file as *.3ds  then use GLb's tools to convert the *.3ds to *.ddd
Title: Re: Translating from Cinema 4d to Glbasic
Post by: mentalthink on 2013-Oct-13
 Yes sf-in-sf the problem it's in 3Ds you can't export animated meshes or boned meshes, you can do an special trick, I forget how calls, really it's export each animation of vertex in the same file...

Really the exporter goes fine, but sometimes the files are very great, and mobiles don't accept very well...

I think the best way it's do somefile in binary and read in GLBasic, make another specific format easy to code...
Title: Re: Translating from Cinema 4d to Glbasic
Post by: sf-in-sf on 2013-Oct-26
Sorry, I never used animated meshes. I hope you can find something useful if you look at OGRE, since it does support animated meshes, but I dont't remember the format (sorry)...
Title: Re: Translating from Cinema 4d to Glbasic
Post by: mentalthink on 2013-Oct-26
Don't mind, in 3ds Max, I hava a plugin did for a friend.. he's don't it's in the forum from a long time, but he did a plugin fantastic for 3ds max, you can export anything animated, with Byped, Cat, bones, especial FX... really the best exporter for GLBasic done from today...

If you use 3ds max, comment me I send you the script, works in any version from 10 to 14 I think it's the last version of Max...
In blender and Cinema 4d and LW can't be too much difficult, now this soft can be scripting in python... but really I'm a hobbiest I',m not a proffesional programmer, so this it's the reason beacuse I can't do sometimes things I want... I don't have skills like another friends in the forum... they are experts in this of pick Code...  :booze: :booze: :booze:  :rant:(I want too!!!)