3D Objects
How do I get 3D objects to work in Marathon? Is there a required file type? and script, also will lighting be 3D on it or like the sprites?
Obj Wavefront 3D files work, as far as I know. You need to make an mml file that tells the 3D shape to replace the sprite's animations. (If animated) or its single frame, if scenery.
Google "spnkrghol" for more help.
If you need more interactive help, you can private message me, but I don't have all the answers.
Google "spnkrghol" for more help.
If you need more interactive help, you can private message me, but I don't have all the answers.
<marathon>
<opengl>
<!-- coll22 seq#12 replace scenery-gun with L33T lamp -->
<model coll="22"
seq="12"
file="model/lamp.obj"
type="wave"
scale="1"
x_rot="0"
y_rot="0"
z_rot="-90"
x_shift="0"
y_shift="0"
z_shift="250"
side="0"
norm_split="0.5"
light_type="0" >
<skin
clut="-1"
opac_type="1"
opac_scale="1"
opac_shift="0"
normal_image="skin/lamp.pct"
normal_mask=""
glow_image=""
glow_mask="" />
</model>
</opengl>
</marathon>
Curdasy of http://www.xs4all.nl/~jemmet/spnkrghol/3D-...on3Dstatic.html
Replace the file with your file name. and save as .mml text file and throw in mml folder of Aleph one.
<opengl>
<!-- coll22 seq#12 replace scenery-gun with L33T lamp -->
<model coll="22"
seq="12"
file="model/lamp.obj"
type="wave"
scale="1"
x_rot="0"
y_rot="0"
z_rot="-90"
x_shift="0"
y_shift="0"
z_shift="250"
side="0"
norm_split="0.5"
light_type="0" >
<skin
clut="-1"
opac_type="1"
opac_scale="1"
opac_shift="0"
normal_image="skin/lamp.pct"
normal_mask=""
glow_image=""
glow_mask="" />
</model>
</opengl>
</marathon>
Curdasy of http://www.xs4all.nl/~jemmet/spnkrghol/3D-...on3Dstatic.html
Replace the file with your file name. and save as .mml text file and throw in mml folder of Aleph one.
Last edited by Zott on Nov 20th '06, 02:47, edited 1 time in total.