03-01-2011, 03:57 PM,
|
|
NaN
Posting Freak
    
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
Dynamic track objects support is in trunk. Try to drive into the ambulance on rouen.
Or add some more in data/rouen/objects/objects.txt
Code: [node.ambulance_b]
body = ambulance
position = 116.7, -592.7, 44
rotation = 0, 0, 45
[node.ambulance_c]
body = ambulance
position = 116.7, -597.7, 44
rotation = 0, 0, 45
Current limitations: Collision shape is bounding box. Mesh center has to be bounding box center.
|
|
03-01-2011, 05:04 PM,
|
|
nomoo
Member
  
|
Posts: 111
Threads: 15
Joined: Mar 2007
|
|
updated to latest svn both src(3088) and data(809), compiled with codeblocks under win7 x64.
Rouen:
stdout:
INFO: Loading track from path: data/tracks/rouen
INFO: Loaded surfaces file, 7 surfaces.
INFO: Track timing sectors: 2
stderr:
ERROR: Error loading track (deferred): rouen
ERROR: Error during track loading: rouen
|
|
03-01-2011, 05:32 PM,
|
|
nomoo
Member
  
|
Posts: 111
Threads: 15
Joined: Mar 2007
|
|
Shadows are the problem.
It's working with shaders enabled, shadows disabled.
|
|
03-02-2011, 02:35 AM,
|
|
nomoo
Member
  
|
Posts: 111
Threads: 15
Joined: Mar 2007
|
|
It's working now.
Thanks NaN!
|
|
03-02-2011, 07:50 AM,
|
|
NaN
Posting Freak
    
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
Looks good, go ahead.
You also can setup the config files conventional, cabover, ... or conventional.txt/cfg whatever you prefer.
Code: model = anteater.joe
texture = anteater.png
#shape = anteater_col.joe # very simple convex hull (4 - 40 verts)
#size = 1, 5, 2 #bounding box
mass = 4500
The idea is to modify the importer/exporter to support the new objects.txt and do the editing in blender.
|
|
03-06-2011, 12:08 AM,
|
|
zimluura
Senior Member
   
|
Posts: 286
Threads: 22
Joined: Oct 2007
|
|
got the trucks and road cones uploaded. haven't been able to put them into rouen yet, my guess is that it's not searching the trackparts directory at the moment.
i tested one with this
[body.ambulance]
texture = truck_red.png
model = anteater.joe
mass = 1200
surface = 0
and got a floating truck - is that due to position, or is bounding box not calculated correctly, or do i have a stray vertex far negative z (looked, couldn't find one)?? or is it that the mesh origin is on the floor?
created a truck_red-misc1.png texture, but didn't seem to get specular highlights, not all that important at the moment really.
=======================
overall this looks really promising. i think maybe i should try making a tuning garage as my first track since it won't need to be big, will have mostly simple track geometry, and a ton of shared objects.
|
|
|