Re: how to restrict terrain generation to the inside of the track

Bernhard Wymann <[email protected]>
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi st

Cool, you seem to be very busy with TORCS, great:-)

> I've created a track supposedly located on the waterfront, an illusion
> more or less supported by the background image. Unfortunately, if I run
> trackgen with the -a option, even when the "border margin" is 0 or a
> negative value, trackgen adds the terrain to the outside of the track to
> form that typical rectangle of terrain. This totally ruins the creative
> intent and the appearance. The track without the terrain at all is
> equally unsatisfactory, as if the track were floating in the air.
>
> I checked trackgen -h and tried the -B option, which removed the outside
> terrain at some parts but not entirely (this example image
> http://www.mojoimage.com/free-image-hosting-view-12.php?id=1295torcs-terrain1.png

I cannot load the image for some reason, but lest have a look...
Ok, I cannot see an option which helps you without using a 3d-modeler 
tool. But possible "hacks" would be:
- using -B with an outside line far below the horizon: but for this you 
require a 3d-modeler to setup the 3d model of the outside line, I guess 
this is not what you are looking for
- Using a height map which puts the outside terrain on a very low level, 
such that you cannot see it with the normal cameras
- Hacking trackgen: in src/tools/trackgen/easymesh.cpp, around line 
2270, look for exterior/interior, just comment out the undesired part

>   shows the problem area in yellow). Are there any other tricks to help
> me get rid of the unwanted terrain so this track wouldn't look
> absolutely ridiculous? Please don't point to the masterpiece also known
> as Blender. In my desperation, I tried opening the -msh.ac file there

You can use ac3d, but this is not free...

> (which did open), but I literally can't do anything in that chaotic
> environment. If there's any other option and maneuver left to try, I'd
> gladly hear about it.

Yes, Blender is as well hard for me, I think for a somebody using it 
often it is great, but just for here and then it is (at least for me) 
not that easy to use.

Best regards

Bernhard

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.