![]() |
Shared Track Objects - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Cars & Tracks (https://www.vdrift.net/Forum/forumdisplay.php?fid=11) +--- Thread: Shared Track Objects (/showthread.php?tid=1437) |
- joevenzon - 02-27-2011 I'm okay with whatever you want to do. - NaN - 03-01-2011 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] Current limitations: Collision shape is bounding box. Mesh center has to be bounding box center. - nomoo - 03-01-2011 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 - NaN - 03-01-2011 You have dynamic shadows on? I've missed this case somehow. No GL3/shaders on my dev machine. - nomoo - 03-01-2011 Shadows are the problem. It's working with shaders enabled, shadows disabled. - NaN - 03-01-2011 Can you try the latest trunk with shadows on? - nomoo - 03-02-2011 It's working now. Thanks NaN! - zimluura - 03-02-2011 joe just helped me fix my svn access. is it time to make a trackparts directory? thinking trackparts/vehicles/trucks conventional.joe cabover.joe anteater.joe black.png red.png trackparts/vehicles/trailers normal.joe extra_trim.joe porsche.png lancia.png that might be good enough to replace the trucks on rouen. i'll have a little more texture work to do. then i'll have to figure out how to remove old objects and replace them. am i correct in thinking that it'll all be text editing? anybody have any alterations they'd like to make to this plan? - NaN - 03-02-2011 Looks good, go ahead. You also can setup the config files conventional, cabover, ... or conventional.txt/cfg whatever you prefer. Code: model = anteater.joe - zimluura - 03-03-2011 for the road_cone i've ended up with 6 files. mesh collision mesh texture map spec map normal map text configuration you think each object should each object get their own directory?? each will be at least 2-3 files but probably average 4-5. i don't have normal maps for the trucks yet (should i bother??) but that would be (7 trucks + 2 trailers) so 4*9 = 36 files in one dir. which will be easier to classify as a single object in a map editor? [edit] wait a sec, all the trucks shared the same diffusion texture map (same with trailers). so we can make a race-team livery once, and then apply it to all truck/trailer models. - NaN - 03-03-2011 Quote:get their own directory??Lets try with a single big dir sharing as much as possible and see how it works out. - zimluura - 03-03-2011 understood! - zimluura - 03-06-2011 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. - NaN - 03-06-2011 Quote:not searching the trackparts directory Quote:mesh origin is on the floorWill fix asap. - NaN - 03-10-2011 trackparts support is in trunk (added trailer next to ambulance at rouen) Do we want an extra center of mass parameter? Currently center of mass is mesh origin. This gives rather unrealistic behavior for the trailer.joe. |