BASIC

Author Topic: Translating from Cinema 4d to Glbasic  (Read 2030 times)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3317
  • Integrated Brain
    • View Profile
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...

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4019
    • View Profile
    • Portfolio
Re: Translating from Cinema 4d to Glbasic
« Reply #1 on: 2013-Feb-13 »
Great!

Is that a python script?

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3317
  • Integrated Brain
    • View Profile
Re: Translating from Cinema 4d to Glbasic
« Reply #2 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Translating from Cinema 4d to Glbasic
« Reply #3 on: 2013-Feb-13 »
search for the "dda" file format on the forums. It's an ascii file that GLBasic can easily read.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3317
  • Integrated Brain
    • View Profile
Re: Translating from Cinema 4d to Glbasic
« Reply #4 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...

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4948
  • O Rly?
    • View Profile
Re: Translating from Cinema 4d to Glbasic
« Reply #5 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 :) 
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2600Mhz Ram, HIS 7970 GHz Edition @3GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline sf-in-sf

  • Mr. Drawsprite
  • **
  • Posts: 92
  • Artist F.P. Brixey
    • View Profile
    • My computed art project
Re: Translating from Cinema 4d to Glbasic
« Reply #6 on: 2013-Oct-13 »
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.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3317
  • Integrated Brain
    • View Profile
Re: Translating from Cinema 4d to Glbasic
« Reply #7 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...

Offline sf-in-sf

  • Mr. Drawsprite
  • **
  • Posts: 92
  • Artist F.P. Brixey
    • View Profile
    • My computed art project
Re: Translating from Cinema 4d to Glbasic
« Reply #8 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)...
On the day the atom is a cube I will start believing in the square pixel.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3317
  • Integrated Brain
    • View Profile
Re: Translating from Cinema 4d to Glbasic
« Reply #9 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!!!)