Duck and Cover Forum Index


Use these links, buy stuff from Amazon and help us out, nubs.
Amazon.com | Amazon.ca | Amazon.co.uk | Amazon.de
  Duck and Cover  •  FAQ  •  Search  •  Memberlist  •  Usergroups   •  Register  •  Profile  •  Log in to check your private messages  •  Log in

 Support DAC!
 3,125 Raindrops drawn per game frame! View next topic
View previous topic
Post new topicReply to topic
Author Message
Cakester
They call me Bum Tickler


Joined: 22 Jul 2009
Posts: 422

PostPosted: Sun May 30, 2010 5:03 pm Reply with quoteBack to top

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)
View user's profileSend private message
The Philadelphia Lawyer
Scarf-wearing n00b
Scarf-wearing n00b


Joined: 23 May 2010
Posts: 26
Location: In your grill!

PostPosted: Sun May 30, 2010 5:21 pm Reply with quoteBack to top

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)


*Head explodes*
View user's profileSend private message
MR Snake
Chinderella
Chinderella


Joined: 02 Aug 2003
Posts: 2232
Location: Fapping in my mothers basement

PostPosted: Sun May 30, 2010 5:26 pm Reply with quoteBack to top

Upgrade your choppy computer.
View user's profileSend private message
Cakester
They call me Bum Tickler


Joined: 22 Jul 2009
Posts: 422

PostPosted: Sun May 30, 2010 5:56 pm Reply with quoteBack to top

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.
View user's profileSend private message
gobbleykins
Vault Veteran
Vault Veteran


Joined: 25 Feb 2010
Posts: 321
Location: Canada

PostPosted: Sun May 30, 2010 8:08 pm Reply with quoteBack to top

Put yo gun away fool, what are you gonna do with it, shoot raindrops?
View user's profileSend private message
inomel
Wanderer
Wanderer


Joined: 19 Feb 2010
Posts: 422

PostPosted: Tue Jun 01, 2010 3:57 pm Reply with quoteBack to top

Acid raindrops keep faalllin on my head!
View user's profileSend private message
MR Snake
Chinderella
Chinderella


Joined: 02 Aug 2003
Posts: 2232
Location: Fapping in my mothers basement

PostPosted: Tue Jun 01, 2010 5:28 pm Reply with quoteBack to top

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.


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.
View user's profileSend private message
Psychoul
Elite Wanderer
Elite Wanderer


Joined: 25 Nov 2007
Posts: 625
Location: Oil Rig

PostPosted: Wed Jun 02, 2010 6:53 am Reply with quoteBack to top

i dont get how those things are raindrops. can someone explain.
in english
View user's profileSend private messageMSN Messenger
St. Toxic
Haha you're still not there yet
Haha you're still not there yet


Joined: 31 Dec 2004
Posts: 3379
Location: One-man religion.

PostPosted: Wed Jun 02, 2010 2:30 pm Reply with quoteBack to top

Psychoul wrote:
i dont get how those things are raindrops. can someone explain.
in english


Cakester wrote:
(life issues)


I think that's about as good an answer as you'll ever get.
View user's profileSend private messageSend e-mailAIM AddressYahoo Messenger
Display posts from previous:      
Post new topicReply to topic


Jump to:  



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group