Page 1 of 4

2009-05-18 snapshot

Posted: Mon May 18, 2009 7:20 am
by jlv
A little warning first. This code has even less testing than normal, as the Vista box that I do my Windows testing on doesn't support framebuffer objects. So if you're looking for something stable you probably want to skip this one.

Changes:
- Now uses framebuffer objects for offscreen rendering if available.
- Adjustable terrain texture resolution.
- Better leg positioning when dabbing.

Before you crank up the terrain texture resolution, make sure you have enough texture memory. The following numbers are the amounts needed in addition to all the other textures loaded by the track, bikes and riders. If you set it to 1024x1024 with a 128 meg card you will get something like 1 frame per minute.

1024x1024: 603,979,776 bytes
512x512: 150,994,944 bytes
256x256: 37,748,736 bytes
128x128: 9,437,184 bytes
64x64: 2,359,296 bytes
32x32: 589,824 bytes

Windows users: http://mxsimulator.com/snapshots/mx-2009-05-18.exe
Linux users: http://mxsimulator.com/snapshots/mxbin-2009-05-18

Replace mx.exe or mxbin with one of the above files. I'd keep a backup of the originals since these aren't well tested.

You will also need to put this file in your install folder:
http://mxsimulator.com/zzzx.saf
(This hasn't changed since the 2008-11-26 version.)

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 7:37 am
by zane
sweet new leg positioning, thanks jlv!

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 7:48 am
by DJ99X
The new leg positioning seems alot more natural. Good work.

The bumped up texture resolutions are good. I don't think anything above 256x256 is necessary unless you are taking screenshots. Otherwise the framerate is cut down heaps, and you dont notice a difference between 256 or higher when you are just riding

As for FrameBuffer Objects
Wikipedia wrote:The FBO has two main uses: The post-processing of rendered images and composition between different scenes. Some examples are:
The rendered image is captured and subjected to Pixel Shaders or other manipulations. This allows for many of today's popular computer graphics effects to be carried out, including the addition of a blurring or bloom effect.
Can be used to create views of other scenes, for example: a TV in a house. A scene can be rendered through an FBO to a texture, then that texture can be applied to the surface of a TV. This is sometimes called "Render to Texture" or RTT.
Seeing as we don't currently have anything that applies to that quote, was that really necessary just yet. Or is it helpful for something else in some way? That would assist in real time reflection rendering wouldn't it?

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 8:18 am
by jlv
1024x1024 is overkill, but there are 2 gig cards out there that could handle it. I figured it might be useful for making movies with low fov settings.

FBO's are useful for anything where you want to draw on a texture with OpenGL functions. For MX Sim, it's needed for the terrain textures. Basically there's a 4x4 by 6 deep stack of textures that have the decals pre-drawn on them. The first level covers the 8x8 foot area under the camera, the next level covers 16x16 feet and so on. As you move, parts of the stack become invalid and those textures need to be redrawn for the new position.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 8:25 am
by DJ99X
So how come it worked before without it? Seems like my framerate has taken a slight hit with it.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 8:40 am
by toonys66
hello, i dont understand, i just download it, i try to play but it always block on loading bike and after i get error message from windows, maybe my computer is not powerful enough, but i was on thelowest texture 158x158 or something like this, i try also 256x256 but it does not work it cut the game, i went back to the other snwpshot and it works? any help please?? what can i do to make it work?
or maybe a snapshot just for the leg change?
thanks for the answer.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 11:26 am
by DJ99X
A little warning first. This code has even less testing than normal, as the Vista box that I do my Windows testing on doesn't support framebuffer objects. So if you're looking for something stable you probably want to skip this one.
I see a few people are having problems. You may want to follow this step

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 11:32 am
by zane
umm i may have found a bug, but im not sure if it is one.

when ever i play online, my rider model is the stock rider and not the ddmx one.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 11:36 am
by yomo
My feed back:
THANK YOU SO MUCH!!!!!

I put it on 1024x1024 loaded the track and it was varying at 25-30 fps
I put it on 512x512 and unfortunately it jumps from 55-60 every now and then so i cant really play on that

but 256x256 is prefect for playing at 512x512 is awesome for videos and stuff like that.

The rider leg is much better but is it possible to not have it so far out from the bike, maybe closer to the front fork?


This is so much better, thank you

EDIT:

http://www.mxsimulator.com/benchracing3 ... 165#p50560
The shot DJ posted is kind of what i was talk about with the leg sort of needing to be tucked in to the front fork

here is an example:
http://www.mcnews.com.au/Wallpaper/Race ... t_1280.jpg

atm its actually pretty close

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 11:51 am
by Mikey
I love the foot it looks real not and like MVA but i have 2 questios
1) When i do a demo then try to play it back i can watch it it has this error about buffering and it starts a new race.
2) With the terrain texture resolution dose the higher number mean the better it looks pretty much? also running it as 32x32 lol means i dont have to wait 5 mins to play :)

*EDIT* This has fixed my PC it just took 10seconds to load Itunes insted of 3 mins lol.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 12:24 pm
by yomo
Mikey wrote: 2) With the terrain texture resolution dose the higher number mean the better it looks?
Nah not at all...

Turn your monitor to the lowest resolution, i hear it looks spectacular

Here you go mikey...

Image

LOOK PRETTY COLOURS!

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 2:16 pm
by RaNDoM HeRO
hm..should i just re install the snapshot?? (if you didnt notice look at all the checkers on the ground)

Image

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 2:58 pm
by mxracer118
thats the same thing i get.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 3:13 pm
by Phathry25
Just a guess here..

Your running out of texture memory. Turn the resolution back down a notch.

Re: 2009-05-18 snapshot

Posted: Mon May 18, 2009 4:54 pm
by toonys66
hi again, i try again with now 32x32 and it s the same, the page load track ok, but after the screen block on load bike with the black screen with mx simulator write in the center? and i have to restart my computer cause it block?
i don t know what to do. so i put the snapshot of before, but i ll like to have the new one with the better position of the leg...
thanks for some help on what can i do. cheers