Modeling help

Post anything about MX Simulator here. Please. I'm begging you.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Modeling help

Post by DJ99X »

Hey, would anyone like to explain what the go is with putting models into the game. I've done the following-
-Exported my tree.jm file
-Made a 512x512 png skin to see if it would show up
- Put it in the tracks folder and put this in the statues file-
[1000 0 1000] 0.000000 @track/treetree.jm @track/treeskin.png null
Its not showing though.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

Now a few questions-
How do I make a layout to skin properly?
How do I get the bloody thing to show up in the game?
Do I need a shape file, and if so, where do i get the export script from?

Help would be greatly appreciated. Thanks!
(Oh, and I had to split this post because I kept getting a 'Forbidden' message when i tried to post the whole thing. Whats the go there? EDIT- seems to be related to the word .shp)
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Modeling help

Post by jlv »

It looks like it should work. All I can think of is maybe the model didn't export correctly. If you look at the .jm file in a text editor does it start with "JM1"?
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

Yeah it does. I've uploaded it, so can you please see if you can get it to work in game?
Attachments
tree.7z
(54.91 KiB) Downloaded 63 times
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Modeling help

Post by jlv »

It worked for me, but it needs to be rotated 90 degrees around the x axis. Here's the statues line:

[1000.000000 0.000000 1000.000000] 0.000000 @treetest/tree.jm @blue.ppm null
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

No matter which way i rotate it in Blender, it keeps lying down, like in the same position. Something is not right.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

Hmmm, anything i do in blender appears to have no effect in game, like rotation and scaling
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Modeling help

Post by jlv »

You are probably changing the object mode settings. You need the rotate it in edit mode.

What I do is set the object transform properties to have RotX = 90 (hit N in object mode to bring up transform properties). Then in edit mode orient the model so it looks right in Blender.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

Ok, I've solved the problem. I had to "apply rotation and scaling". Now to skin the thing....

Oh, and im guessing this .shp business has something to do with the object being solid, ie you fall off when you hit it? Can this be done with blender? If its too complex, dont worry about explaining.
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Modeling help

Post by jlv »

Try this for the .shp.

Code: Select all

15
0 -20 0 2 1 500 25
0 -17 0 2 1 500 25
0 -14 0 2 1 500 25
0 -11 0 2 1 500 25
0 -8 0 2 1 500 25
0 -5 0 2 1 500 25
0 -2 0 2 1 500 25
0 1 0 2 1 500 25
0 4 0 2 1 500 25
0 7 0 2 1 500 25
0 10 0 2 1 500 25
0 13 0 2 1 500 25
0 16 0 2 1 500 25
0 19 0 2 1 500 25
0 22 0 2 1 500 25
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

Ah thanks, that worked great! Final thing... how do we get the layout to skin the model?
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Modeling help

Post by jlv »

Switch a window to UV/Image Editor and from there hit the menu UVs/Scripts/Save UV Face Layout.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

I'm trying once again to model tree's. Here are my probs-

1) I'm a retard at Blender. For some reason I can only rotate the leaves on the tree, whilst in edit mode. I can't select any other objects, like the branches or the trunk.

2) I have no idea how they skin these models so good.

3) I have no idea you make shp files. I remember you saying something about this method using spheres. Personally, I think that the game needs a different method than this, that way we can make free style ramps, and you're rocks on that track actually do something! It would be handy for making endurocross courses

4) When I do add a skin to a tree I've made without leaves, it skins the inside of the model... wtf?

Here are the tree's-

Image

Oh, by the way, I'm using the Gen3 script for blender to model these trees. How did you make yours JLV (it looks bought). And how come the Leaves and Trunk are separate models?
jlv
Site Admin
Posts: 14928
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Modeling help

Post by jlv »

Looks you you have your normals flipped.

I just made my tree model by hand. The trunk is separate so I can use a repeating bark texture on it. For the leaves I just used a transparent texture with an image of one complete branch. I mapped that to a plane and folded it a little bit to give it some dimension. Then I duplicated more branches and randomly moved them around. Here's the blender file for it:

http://mxsimulator.com/models/tree.zip
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Modeling help

Post by DJ99X »

Hey, whats the file names so I can use them in game, ie whats the names of the jm, png and shp files?
Post Reply