Splines not working

privite

The West Somerset Railway
Hi,

i have been searching the forums for a while now, and found nothing. My problem is that i have created a fence using Gmax. i exported it into CMP and it shows up with no errors. as far as im aware, its the right type of item and shows up in the right section in trainz. I put the spline down and i can see the circles but not the actual thing, although i can see it in Pev's mesh viewer. Any help will be appreciated.

thanks
 
Hi,

i have been searching the forums for a while now, and found nothing. My problem is that i have created a fence using Gmax. i exported it into CMP and it shows up with no errors. as far as im aware, its the right type of item and shows up in the right section in trainz. I put the spline down and i can see the circles but not the actual thing, although i can see it in Pev's mesh viewer. Any help will be appreciated.

thanks

Did you invert your normals? That would make the object invisible.
Just a guess because I'm no expert at this...

John
 
Depending on exactly what kind of spline you are creating you may need to be including a "Track" container and a ""track LOD tree" to the config.txt.

(Another guess from a non expert) :) .

Edit: Something like this...

Code:
mesh-table
{
  default
  {
    mesh                                "multi-colour-marker-line.im"
    auto-create                         1
  }
}
track
{
  mesh-length                           2
 
  track-lod-tree
  {
    lod-distance                        250
    high-detail
    {
      lod-distance                      80
      mesh                              "default"
    }
    low-detail
    {
      mesh                              "default"
      lod-distance                      160
    }
  }
}
 
Last edited:
position

Is the position of the start point of the object exactly Y0, Z0, in gmax?

I have made a few splaines and a couple of times did not get these right and all I got were the spline circles going round and round.

Angela
 
Also, this may sound dumb, but i made splines on gmax once. I didnt realize how high I mad the spline. turns out it was only and inch high, so when i placed it in trains, I coulnt see it because it was so small!:D
 
Did you invert your normals? That would make the object invisible.
Just a guess because I'm no expert at this...

John

Thanks for all your replies, they are appreciated. But what do you mean by "invert your normals"? My spline is invisable.By the way, im making a fence. Also the hight is around 2 meters and it is in the centre of gmax

thanks
 
Last edited:
Try Pev's Trainz Mesh Viewer, unless all the normals are flipped it should show up in that even if it's got a texture problem or in the wrong place, then depending on what appears or maybe doesn't we can advise from that?
 
All splines must start at y=0 and grow in the negative y direction. Anything with positive y coordinate will not show. A GMax screenshot would help.

Paul
 
Thanks for all your replies, they are appreciated. But what do you mean by "invert your normals"? My spline is invisable.By the way, im making a fence. Also the hight is around 2 meters and it is in the centre of gmax

thanks

There are great suggestions here...


But anyway... what happens is 3D objects are not painted on both sides. That is your texture is placed on a UV map. If this map is attached to a single side of the polygon, and the polygon is flipped inside, then the object will be invisible.

Flip your normals and see what happens, or try as Malc says. Use PEV's Mesh viewer to see if the normals are flipped.

{There are times when I wish I could flip my own normals and disappear from the scene, but that's not possible in real life!} :cool:

John
 
Or as I did made a building so large I didn't realise I was inside it.............

{giggling} Been there done that! I remembering strugging loads in the early days! And ultra small models too, oh and some beneath the ground too :hehe:

Thank you for brightening up my day!
 
{giggling} Been there done that! I remembering strugging loads in the early days! And ultra small models too, oh and some beneath the ground too :hehe:

Thank you for brightening up my day!

I've done that before too. I made a house once that was so small, I couldn't find it. It was probably the size of a flea!

John
 
There are great suggestions here...


But anyway... what happens is 3D objects are not painted on both sides. That is your texture is placed on a UV map. If this map is attached to a single side of the polygon, and the polygon is flipped inside, then the object will be invisible.

Flip your normals and see what happens, or try as Malc says. Use PEV's Mesh viewer to see if the normals are flipped.

{There are times when I wish I could flip my own normals and disappear from the scene, but that's not possible in real life!} :cool:

John

Items with flipped normals are not normally invisible - they usually appear 'inside-out', so I'd suggest this probably not the issue, especially if it appears OK in PEV's mesh viewer.

I'd suggest that the most likely problems are alignment in GMax, or a mistake in the mesh table. If you post a top view GMax screenshot, and your config file, it should be obvious where the issues are.

Or, just as a test, try configuring the item as a fixed scenery object - that should eliminate some of the more likely errors.

Paul
 
Thanks for all your replies.


1)I can see it in Pevs Mesh viewer
2)Heres my config:
myconfigdunsterseaoverf.jpg

3) heres it in gmax:
dunsterseaoverflowgmax1.jpg

4) In CMP it shows up as a piece of scenery with a picture of a house.

thanks
 
It's a bit hard to read the config you posted but...

1) You need a mesh table to reference the mesh you have created - name the mesh "default".

2) You might need to include the tag "isroad 1" in the config.
 
Last edited:
IT WORKS!!!!

Thanks everyone that replied, it appreciated. and thanks Itareus, i tried what you said and on of the two made it work. probably the mesh one, as i had tried the isroad already. But as we are on the topic, does anyone know what measurements for making splines as mine go like this:

privite201110020000.jpg


thanks
 
Hi,

In your gmax screenshot, the Top View window.
You need to have the top part of the mesh where your middle part is on that view.
So move the whole mesh down 3,5 little squares seen in the mesh model.
-> Reason, Trainz will repeat (as it does in a spline model) only the part of your model that starts at Y = 0 (as in your screenshot, the middle) and down in the negative Y direction. Everything above that Y = 0 will be squashed into nothing so to speak.
This will then make the repeating part look strange, as in your Trainz screenshot.

When making splines, the important part in mesh making is to start at the coordinate Y = 0 and move into the negative Y range.
And keep the mesh centered on the coordinate X so you are as much into the negative X as into the positive X - for instance as seen in Top View:
Left upper side X = -3,5m | Y = 0m
Right upper side X = 3,5m | Y = 0m
Left bottom side X = -3,5m | Y = -7m
Right bottom side X = 3,5m | Y = -7m

If the model is also made symmetrical at the ends it will look the same when connecting the spline from either direction.

Hope this helps some?

Best of luck

Linda
 
Forget my post, Linda is right on the button about the position.

Not being a GMax user I did not twig to the slightly darker axis lines, Blender by default uses two colours which are more visible.

Cheers
 
Thanks for the posts, they are well appreciated. i've tried what Linda said, but had no luck. Any other ideas would be great:)
 
Back
Top