Felix Kühling | 19 Feb 2006 19:01
Picon
Picon

World-writable installation directories

Hi,

by default the installation directories of TORCS are world-writable.
This is a pretty bad thing from a security point-of-view. This small
patch to the mkinstalldirs script in CVS fixes the problem:

Index: mkinstalldirs
===================================================================
RCS file: /cvsroot/torcs/torcs/torcs/mkinstalldirs,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 mkinstalldirs
--- mkinstalldirs       24 Jun 2001 17:43:16 -0000      1.1.1.1
+++ mkinstalldirs       19 Feb 2006 18:00:35 -0000
 <at>  <at>  -8,8 +8,6  <at>  <at> 

 errstatus=0

-umask 000
-
 for file
 do
    set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`

Please consider applying this to CVS.

Regards,
  Felix

--

-- 
| Felix Kühling <fxkuehl <at> gmx.de>                     http://fxk.de.vu |
(Continue reading)

Felix Kühling | 19 Feb 2006 22:44
Picon
Picon

[patch] Field-of-view and display mode list fixes

Hi,

I attached two patches. The first one fixes three issues concerning the
field of view.

     1. When computing the fovx base on fovy and the screen aspect
        ratio, you can't use angles. Instead the computation must be
        done with lengths in the projection plane. The old way of doing
        the computation with angles is approximately correct for small
        angles but gets more and more distorted with larger angles. Now
        the aspect ratio looks correct, even with extreme zoom levels
        and on wide-screen displays.
     2. Now the limitFov methods that limit the fovy such that fovx
        never gets bigger than 90° doesn't make sense any more. With the
        aspect ratio computation in the projection plane you always get
        a valid fovx angle for any fovy angle < 180°. Therefore I
        removed all those limitFov methods. The respective camera
        classes inherit the empty implementation from cGrPerspCamera.
     3. The field of view of the background did not match the field of
        view of the rest of the scene. In particular the background did
        not change when zooming. Just enable the zoomed track-view
        camera (F9) to see what I mean. :) I added a getFovY method to
        the camera base class and use it in cGrBackgroundCam::update to
        match the scene's fovy. On orthographic cameras it returns a
        constant 67.5° (the default value of the background camera), on
        perspective cameras it returns the real fovy.

The second one fixes a glitch in the display mode list generation. On my
system it would result in the highest resolution mode missing from the
list. With this fix I can finally play Torcs in fullscreen mode on my
(Continue reading)

SpeedyChonChon | 20 Feb 2006 19:57
Picon
Favicon

I need some help to help Vicente.

Hi all.

Can you please have a look at my forum ?
A new Torcs addict needs some help. So far I could help him. But now he need to compile stripe on Windows and I don't know anything about that.
The subject is : "Export a car from blender into torcs. Help is needed."

Thank

Speedy

Christos Dimitrakakis | 20 Feb 2006 11:24
Picon
Favicon

Re: [patch] Field-of-view and display mode list fixes

OK, tested the FOV patch. Here are my results:

1) OK, fine, apart from one thing:
- On some extra-wide screens, such as for example the screens that you
get when pressing [ or ], everything is stretched. Does this patch take
into account the aspect ratio of the screen??? Can you check? It might
be that it does and that the aspect ratio is not set correctly for these
screens or that it does not check and it assumes a 1:1 ratio ..

2) I guess OK, but not tested.

3) Should be OK, we must change grBackgroundCam() so that it gets the
FOV of the camera that is using it.

If you can check my problem with point 1) I could do 3) and apply the
whole thing on CVS

--

-- 
Christos Dimitrakakis
Homepage: http://www.idiap.ch/~dimitrak/main.html
Music: http://olethros.dmusic.com

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Felix Kühling | 20 Feb 2006 21:14
Picon
Picon

Re: [patch] Field-of-view and display mode list fixes

Am Montag, den 20.02.2006, 11:24 +0100 schrieb Christos Dimitrakakis:
> OK, tested the FOV patch. Here are my results:
> 
> 1) OK, fine, apart from one thing:
> - On some extra-wide screens, such as for example the screens that you
> get when pressing [ or ], everything is stretched. Does this patch take
> into account the aspect ratio of the screen??? Can you check? It might
> be that it does and that the aspect ratio is not set correctly for these
> screens or that it does not check and it assumes a 1:1 ratio ..

Maybe on split screen it still assumes the aspect ratio of the full
screen and squeezes it to fit on half the screen. Or I believe I saw
some code that limits the aspect ratio to 2.3. I guess that would have
to be disabled for horizontal screen splitting to work reasonably,
especially on wide-screen displays. I suspect this issue was previously
masked by the wrong aspect ration computation. I'll look into it.

> 
> 
> 2) I guess OK, but not tested.
> 
> 3) Should be OK, we must change grBackgroundCam() so that it gets the
> FOV of the camera that is using it.
> 
> If you can check my problem with point 1) I could do 3) and apply the
> whole thing on CVS

Sounds good.

Thanks,
  Felix

--

-- 
| Felix Kühling <fxkuehl <at> gmx.de>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
Bernhard Wymann | 20 Feb 2006 21:29
Picon
Favicon

Update in CVS

Hi all

There is a little update in the CVS.
- Pit sharing support (for TRB, the default is one car per pit because the
robots in the CVS do not yet support it). Have a look at the readme.
- Fixed wrong car corners for cars with nonmatching center of gravity and
geometric center.

Bye, Bernhard.

--

-- 

Visit my homepage http://www.berniw.org
Official TORCS racing: The TORCS Racing Board, http://www.berniw.org/trb

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Felix Kühling | 21 Feb 2006 04:38
Picon
Picon

Re: [patch] Field-of-view and display mode list fixes

Am Montag, den 20.02.2006, 11:24 +0100 schrieb Christos Dimitrakakis:
> OK, tested the FOV patch. Here are my results:
> 
> 1) OK, fine, apart from one thing:
> - On some extra-wide screens, such as for example the screens that you
> get when pressing [ or ], everything is stretched. Does this patch take
> into account the aspect ratio of the screen??? Can you check? It might
> be that it does and that the aspect ratio is not set correctly for these
> screens or that it does not check and it assumes a 1:1 ratio ..

An updated patch is attached. It removes the limitation of the aspect
ratio to 2.3, which fixes the distortion in split screen mode.

What about the other patch for the mode list generation. Can you commit
that to CVS too?

Regards,
  Felix

> 
> 
> 2) I guess OK, but not tested.
> 
> 3) Should be OK, we must change grBackgroundCam() so that it gets the
> FOV of the camera that is using it.
> 
> If you can check my problem with point 1) I could do 3) and apply the
> whole thing on CVS
> 
--

-- 
| Felix Kühling <fxkuehl <at> gmx.de>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |
Attachment (fov_fixes.diff): text/x-patch, 5769 bytes
brian gr | 21 Feb 2006 16:44
Picon
Favicon

Improving OpenGL rendering for cars

Hi everyone,
I am new to Torcs.  I think your game is quite
impressive.

I would like to offer some help on your project in the
graphics area.  I am fairly experienced with OpenGL. 
I would like to add cube map reflection to the cars
and render a glass material for the car windows.  Of
course I would do it in a way that people with older
machines would have it work like it does currently.

I have a couple of questions.  I couldn't get the CVS
version to run.  I am using windows and MSVC 6.  It
compiles but it doesn't show the opening text doesn't
appear.    

Have you guys thought about using the GLEW library to
handle OpenGL extensions?

Brian

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Christos Dimitrakakis | 22 Feb 2006 11:10
Picon
Favicon

Updates in CVS

Incorporated Felix's PoV patches.
--

-- 
Christos Dimitrakakis
Homepage: http://www.idiap.ch/~dimitrak/main.html
Music: http://olethros.dmusic.com

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Christos Dimitrakakis | 22 Feb 2006 11:19
Picon
Favicon

pits bug

There seems to be a bug related to the new pits code.

Whenever the human player (not the bots, apparently)
a) passes the start line at the beginning of the race
b) in tracks which have no pits

A segfault happens at raceengine.cpp:141

Can you verify?
--

-- 
Christos Dimitrakakis
Homepage: http://www.idiap.ch/~dimitrak/main.html
Music: http://olethros.dmusic.com

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

Gmane