3D Objects

Have a question, suggestion, or comment about Aleph One's features and functionality (Lua, MML, the engine itself, etc)? Post such topics here.
Post Reply
Samus

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?
User avatar
Zott
Vidmaster
Posts: 1666
Joined: Jul 1st '06, 21:14
Location: Earth
Contact:

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.
Video Gamer Blog (With some articles by me!)

Look at Him Go, Weeee
Samus

Yeah, but I don't know the commands to put 3D objects in... Ill check google
User avatar
Zott
Vidmaster
Posts: 1666
Joined: Jul 1st '06, 21:14
Location: Earth
Contact:

<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.
Last edited by Zott on Nov 20th '06, 02:47, edited 1 time in total.
Video Gamer Blog (With some articles by me!)

Look at Him Go, Weeee
Post Reply