Translating from Cinema 4d to Glbasic

Previous topic - Next topic

mentalthink

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]

erico

Great!

Is that a python script?

mentalthink

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...

Kitty Hello

search for the "dda" file format on the forums. It's an ascii file that GLBasic can easily read.

mentalthink

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...

Schranz0r

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 :) 
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

sf-in-sf

Easy: export the file as *.3ds  then use GLb's tools to convert the *.3ds to *.ddd
On the day the atom is a cube I will start believing in the square pixel.

mentalthink

 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...

sf-in-sf

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)...
On the day the atom is a cube I will start believing in the square pixel.

mentalthink

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!!!)