3,125 Raindrops drawn per game frame!
3,125 Raindrops drawn per game frame!
Instead of making a new thread I will just put my new video in this.
As promised, I have figured out how to draw custom meshes at run-time via code. In this example I combined three nested for loops to draw each game frame. The X , Y, and Z are increased in value based upon Elapsed Time, a random number between 1 and 3, and a set of arbitrary values.
Video, http://www.youtube.com/watch?v=dU0-h5oYX38
The game uses a ModelViewProj matrix (equivalent to WorldViewProj). This matrix needs to be set with SetVertexShaderConstantF.
To make the matrix it is a bit tricky.
First you multiply the current world transform by the current view transform. Then multiply the WorldView by the current Projection. But before you can use this final matrix you need to switch some values around in the 4x4. If you need the code for that I can provide it to you.
Now that I am confident I can draw the raindrops where I want at any time, I can either move on to making the rain fall in a natural way from the sky, or work on making it so the rain drops do not penetrate solid collision objects. Both will be done before the end, but are separate challenge I believe.
Oh and if you are wondering about the exact dimensions of the rain show in that video, it is 25x25x5. 25 x, 25 y, and then 5 layers of z.
So yeah I hope this makes up for my absence over the past couple days. (life issues)
As promised, I have figured out how to draw custom meshes at run-time via code. In this example I combined three nested for loops to draw each game frame. The X , Y, and Z are increased in value based upon Elapsed Time, a random number between 1 and 3, and a set of arbitrary values.
Video, http://www.youtube.com/watch?v=dU0-h5oYX38
The game uses a ModelViewProj matrix (equivalent to WorldViewProj). This matrix needs to be set with SetVertexShaderConstantF.
To make the matrix it is a bit tricky.
First you multiply the current world transform by the current view transform. Then multiply the WorldView by the current Projection. But before you can use this final matrix you need to switch some values around in the 4x4. If you need the code for that I can provide it to you.
Now that I am confident I can draw the raindrops where I want at any time, I can either move on to making the rain fall in a natural way from the sky, or work on making it so the rain drops do not penetrate solid collision objects. Both will be done before the end, but are separate challenge I believe.
Oh and if you are wondering about the exact dimensions of the rain show in that video, it is 25x25x5. 25 x, 25 y, and then 5 layers of z.
So yeah I hope this makes up for my absence over the past couple days. (life issues)
- The Philadelphia Lawyer
- Scarf-wearing n00b
- Posts: 26
- Joined: Sun May 23, 2010 9:06 pm
- Location: In your grill!
Re: 3,125 Raindrops drawn per game frame!
*Head explodes*Cakester wrote:Instead of making a new thread I will just put my new video in this.
As promised, I have figured out how to draw custom meshes at run-time via code. In this example I combined three nested for loops to draw each game frame. The X , Y, and Z are increased in value based upon Elapsed Time, a random number between 1 and 3, and a set of arbitrary values.
Video, http://www.youtube.com/watch?v=dU0-h5oYX38
The game uses a ModelViewProj matrix (equivalent to WorldViewProj). This matrix needs to be set with SetVertexShaderConstantF.
To make the matrix it is a bit tricky.
First you multiply the current world transform by the current view transform. Then multiply the WorldView by the current Projection. But before you can use this final matrix you need to switch some values around in the 4x4. If you need the code for that I can provide it to you.
Now that I am confident I can draw the raindrops where I want at any time, I can either move on to making the rain fall in a natural way from the sky, or work on making it so the rain drops do not penetrate solid collision objects. Both will be done before the end, but are separate challenge I believe.
Oh and if you are wondering about the exact dimensions of the rain show in that video, it is 25x25x5. 25 x, 25 y, and then 5 layers of z.
So yeah I hope this makes up for my absence over the past couple days. (life issues)
Ew... ghoulification...
WTF. Everyone accuses me of having a shit computer or that the mod itself most be a poor design.
FUCK YOU MAN. I work my ass off, and the shit I show you is recorded with the best CamCorder I have.
And honestly the best CamCorder has nothing to do with maximum performance possible . I like not having to convert gigabyte in size files every fucking time i want to show people something. So i stick with what i know, and what i know gives me decent quality videos that i can upload and not have to wait for conversion or an entire day for it to be processed to even show that EXTRA QUALITY you seem to think is possible.
FUCK YOU MAN. I work my ass off, and the shit I show you is recorded with the best CamCorder I have.
And honestly the best CamCorder has nothing to do with maximum performance possible . I like not having to convert gigabyte in size files every fucking time i want to show people something. So i stick with what i know, and what i know gives me decent quality videos that i can upload and not have to wait for conversion or an entire day for it to be processed to even show that EXTRA QUALITY you seem to think is possible.
-
- Vault Veteran
- Posts: 320
- Joined: Thu Feb 25, 2010 8:49 pm
- Location: Canada
-
- Chinderella
- Posts: 2228
- Joined: Sat Aug 02, 2003 8:07 pm
- Location: Fapping in my mothers basement
Get fraps then convert the shit into an avi and stop your crying. If you want to cry then go to the wasteland. I dont want to watch that choppy shit because it hurts my eyes.Cakester wrote:WTF. Everyone accuses me of having a shit computer or that the mod itself most be a poor design.
FUCK YOU MAN. I work my ass off, and the shit I show you is recorded with the best CamCorder I have.
And honestly the best CamCorder has nothing to do with maximum performance possible . I like not having to convert gigabyte in size files every fucking time i want to show people something. So i stick with what i know, and what i know gives me decent quality videos that i can upload and not have to wait for conversion or an entire day for it to be processed to even show that EXTRA QUALITY you seem to think is possible.
Do these glasses and my two chins make me look sexy?