News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
iGame3D MurgaLua'd
Author Message
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
RE: iGame3D MurgaLua'd

chrimo Wrote:
What format is used for the moving object?


The model format for non-static objects is WTF.
iGame3D can import 3DS, OBJ, and LWO files and export the WTF file.

We also have a WTF exporter for AC3D, which I think supports the Lego format.
We have another exporter for Blender, but I believe it may not support textures.

chrimo Wrote:
Are png's OK for the static objects (bricks for the wall) ?

For a simple fast approach, you may want to use modified clones of the WTF files "square" and "cube"

Square.wtf can be thought of as a sprite.
Its four corners, 2 polygons, 1 face, it can be solid, mobile, and you can make an unknown amount of equally controllable clones.

Lets look inside this file at its Materials properties.
I'm going to comment some data but normally thats not in a WTF file.
I also removed OpenGL's extra zero's.

Code:
#Materials: -- here's the header to search for in a WTF
1 -- number of materials on this object
acmat_0 -- the material name..this model came from ac3d
13 -- number of properties the material has
smooth=0
color=1.0,1.0,1.0,1.0
ambient=0.20,0.20,0.20,1.0
diffuse=0.80,0.80,0.80,0.80
specular=0.0,0.0,0.0,1.0
shininess=0.0
emission=1.0,1.0,1.0,1.0
blend=1
wire=0.0
depth=1
-- Just modify a path at these lines to change textures. 
texture=1,Data/Images/BrickRoomLarge_wtf.png
texture=2,Data/Images/cloud.png
lux=true
2
1,0,3,1.0,0.0,0.0,0.0,0.0,1.0
3,2,1,0.0,1.0,1.0,1.0,1.0,0.0


This material currently has 2 textures, it can have more or less.

Let your imagination go wild with the uses of a flat plane wooo!

The cube is probably best to deal with, you can place it without worrying about its open behind, and scale it to meet various thicknesses.

Its texture can be replaced easily in a text editor or with scripts as well.
I'll dig for a scripting example of textures to amend this with.

11-29-2007 03:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
iGame3D MurgaLua'd - iGame3D - 11-24-2007, 06:54 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 09:36 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 09:53 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 10:13 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 10:50 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 11:21 PM
RE: iGame3D MurgaLua'd - Tobi - 11-25-2007, 04:36 AM
RE: iGame3D MurgaLua'd - iGame3D - 11-25-2007, 05:14 AM
RE: iGame3D MurgaLua'd - Tobi - 11-25-2007, 05:37 AM
RE: iGame3D MurgaLua'd - chrimo - 11-25-2007, 06:16 AM
RE: iGame3D MurgaLua'd - chrimo - 11-25-2007, 06:38 AM
iGame3D Hello World - iGame3D - 11-25-2007, 09:20 AM
RE: iGame3D MurgaLua'd - chrimo - 11-27-2007, 06:01 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 12:26 AM
RE: iGame3D MurgaLua'd - Tobi - 11-28-2007, 06:04 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 06:32 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 06:36 AM
RE: iGame3D MurgaLua'd - Tobi - 11-28-2007, 07:11 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 07:29 AM
RE: iGame3D MurgaLua'd - Tobi - 11-28-2007, 07:43 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 02:58 AM
RE: iGame3D MurgaLua'd - iGame3D - 11-29-2007 03:25 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 03:50 AM
RE: iGame3D MurgaLua'd - iGame3D - 11-29-2007, 04:02 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 06:25 AM
RE: iGame3D MurgaLua'd - Tobi - 11-29-2007, 07:07 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 07:29 AM
RE: iGame3D MurgaLua'd - Tobi - 11-29-2007, 07:45 AM
RE: iGame3D MurgaLua'd - Tobi - 11-29-2007, 07:52 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 07:42 AM
RE: iGame3D Data Directories - iGame3D - 11-29-2007, 09:10 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 09:24 AM
RE: iGame3D MurgaLua'd - chrimo - 12-02-2007, 10:56 PM
RE: iGame3D MurgaLua'd - iGame3D - 12-03-2007, 04:46 AM
RE: iGame3D MurgaLua'd - chrimo - 12-03-2007, 06:50 AM
RE: iGame3D MurgaLua'd - Tobi - 12-03-2007, 07:09 AM
RE: iGame3D MurgaLua'd - chrimo - 12-09-2007, 12:18 AM
RE: iGame3D MurgaLua'd - chrimo - 12-09-2007, 09:32 PM
RE: iGame3D MurgaLua'd - mikshaw - 12-12-2007, 02:47 PM
RE: iGame3D MurgaLua'd - chrimo - 12-12-2007, 08:35 PM
RE: iGame3D MurgaLua'd - mikshaw - 12-13-2007, 01:31 AM
RE: iGame3D MurgaLua'd - iGame3D - 12-13-2007, 02:55 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: