07-29-2007, 04:28 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:abs1nth Wrote:i noticed distorted colors, on dijon there is lot of pink ;->
That's actually a problem with the textures... due to the way the OpenGL alpha test works, you get some of the color of the transparent areas in the texture. All of the transparent areas of the dijon textures are pink. Coloring the transparent areas with a neutral gray color fixes the problem... I did this to the crowd textures as an example and checked it in, rev 31. I suspect that the old version of VDrift had some pink around the edges too, although it may have been less noticeable because I had the alpha function set up differently. I'd like to be able to keep the alpha function as it is, but this may require some kind of color replacement script to go through and correct all of the track textures.
there are a lot of other tracks that suffer from this problem, kyalami being one of them. how exactly did you color the transparent areas with a gray colour? can you post the command so i can fix the other tracks? thanks.
--alex--
|
|
07-30-2007, 01:45 AM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
The reason the transparent areas are purple is because they're converted from bmp files used in Racer, where a specific color was marked transparent. These were converted to transparent parts in png files with this command:
Code: mogrify -transparent rgb\(255,0,255\) file.png
Perhaps there's another command that could be used to turn any 255,0,255,0 pixels to 128,128,128,0 from the command-line? The way I did it was manually in the Gimp: select the layer mask, invert selection, fill with grey.
|
|
07-30-2007, 01:03 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:The reason the transparent areas are purple is because they're converted from bmp files used in Racer, where a specific color was marked transparent. These were converted to transparent parts in png files with this command:
Code: mogrify -transparent rgb\(255,0,255\) file.png
Perhaps there's another command that could be used to turn any 255,0,255,0 pixels to 128,128,128,0 from the command-line? The way I did it was manually in the Gimp: select the layer mask, invert selection, fill with grey.
you can do it using imagemagick but the problem is that the colour is still there; not as obvious because it's grey instead of purple but i would like to get rid of it completely. i'll keep playing with imagemagick and see if i can figure it out.
--alex--
|
|
07-31-2007, 01:43 PM,
|
|
kidrock
Member
|
Posts: 230
Threads: 17
Joined: Apr 2007
|
|
i think the 3s needs some work on the front suspension, tire traction, and brake strength. i say this because i noticed with a hard brake from hi speed with ABS turned off the rear wheels will get off the ground! a bit annoying when using the keyboard and braking in a turn! to much oversteer.
|
|
08-01-2007, 10:18 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
The calculation of the starting position should be correct. My feeling is there is still something wrong with the collision detection/handling.
|
|
08-01-2007, 08:25 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:Perhaps there's another command that could be used to turn any 255,0,255,0 pixels to 128,128,128,0 from the command-line? The way I did it was manually in the Gimp: select the layer mask, invert selection, fill with grey.
using convert from imagemagick:
Code: convert fence.bmp.png -fill 'rgba( 128,128,128,255 )' -opaque 'rgba(255,0,255,255)' -depth 8 test.png
i still don't understand why the alpha colour bleeds through though.
--alex--
|
|
08-03-2007, 02:07 AM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:Since the texture is bilinear filtered, the alpha values get interpolated between pixels. When rendered, the areas between the texture's opaque and transparent textures will end up with intermediate alpha values and pass the alpha test, and because of the bilinear filtering they'll have some of each neighboring pixel's color. As a result, they'll pick up some pinkish color.
this make sense. i'll try to fix the tracks as i find the time.
--alex--
|
|
08-03-2007, 04:33 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
Re: Things that worked before but now don't
joevenzon Wrote:Now that the screnegraph branch has been merged into the trunk, I need to go through and clean up all of the things I broke:
- Skyboxes don't stay far away [fixed R1770]
What else?
while the skyboxes do stay away now, the track objects are not being drawn until the skybox has moved past them. this is probably because we are culling the objects behind the skybox (which initially i was arguing in favour of) but which looks ugly as objects keep popping up in the track as you drive around. the fix is probably as simple as disabling the culling of objects behind skyboxes (which is hopefully easy to implement).
--alex--
|
|
|