Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1] 2 3
  Print  
Author Topic: Grass for you :)  (Read 6426 times)
Csakip
Community Member
*
Posts: 1008


« on: April 29, 2003, 07:35:46 AM »

I've made a simple "grass factory" class. It renders grass around the camera. Take a look and tell me if something should be made differently.
The "new" thing about it that it groups the grass into tiles and only the surrounding tiles are processed.
Included it in the Tutorial 7 (VB6).
The whole thing is downloadable from here:

http://www.nexus.hu/csakip/GrassFactoryExample.zip

Maybe the media file's path should be altered!
Logged

CsakiP
Yevgeni
Community Member
*
Posts: 104


« Reply #1 on: April 29, 2003, 08:01:26 AM »

Very nice tutorial  :!:

(After I putted this to c:\ because the TV3DSDK was in c:\ TV3DSDK and after I add the ClassModule (GrassFactory)) :wink:
Just the thing I was looking for, good work!
Sylvain, pleas put that to the sdk.
Thanks.  Smiley
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #2 on: April 29, 2003, 09:24:33 AM »

Nice !!

yea we will definitively add it for the sdk Smiley
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
bbence
Customers
Community Member
*****
Posts: 885


WWW
« Reply #3 on: April 29, 2003, 09:57:42 AM »

Quote from: "Csakip"
I've made a simple "grass factory" class. It renders grass around the camera. Take a look and tell me if something should be made differently.
The "new" thing about it that it groups the grass into tiles and only the surrounding tiles are processed.
Included it in the Tutorial 7 (VB6).
The whole thing is downloadable from here:

http://www.nexus.hu/csakip/GrassFactoryExample.zip

Maybe the media file's path should be altered!


So nexus.hu works from abroad? Nice. Smiley This info alone is very useful for me but also the sample looks good. Keep up the good work! Smiley
Logged
Glidisen
Community Member
*
Posts: 324


« Reply #4 on: April 29, 2003, 10:20:00 AM »

Very nice tutorial!!! Cheesy


Just one thing... When i press to buttons at the same time in oposite directions i get a subscript out of range error!
Logged
Slider
Community Member
*
Posts: 1137


« Reply #5 on: April 29, 2003, 10:29:49 AM »

Quote
Just one thing... When i press to buttons at the same time in oposite directions i get a subscript out of range error!


Then I suggest you don't press them both at the same time.  Cheesy
Logged

Slider is the name, and logic is my game...
Helping retards through life since 1981
sury
Community Member
*
Posts: 200


« Reply #6 on: April 29, 2003, 01:59:47 PM »

Very nice indeed.. Cheesy  keep it up .....and everyone else as well

The concept of OOP programming will be very useful to the TV community
where every user made  "plug-in"  will become a muscle in the body of a growing demon simply called TV  :wink:  

I believe this muscles(classes)  will be pieces of your brain , without any trace of commerciality.

Smooth coding.....
Logged
odinsblade
Community Member
*
Posts: 262


« Reply #7 on: April 29, 2003, 04:39:42 PM »

oooo, nifty!  Cheesy
Logged

-Odin
wenching
Community Member
*
Posts: 1472


« Reply #8 on: April 29, 2003, 07:29:00 PM »

Hello everyone.

It seems i can't compile... anyway i had no knowledge on vb6.. can anyone help me...

seems that the creator didn't initialize the GrassFactory class

The error is:
Compile Error
User-Defined type not defined
--> Private MyGrass As GrassFactory

Any help, thank you!

Hmm.. is it I must run this program under the tv3dsdk folder? Hmm...

Regards,
Chua Wen Ching :p
Logged

Cheers.

Regards,
Chua Wen Ching
odinsblade
Community Member
*
Posts: 262


« Reply #9 on: April 29, 2003, 07:34:43 PM »

You can run it wherever you want, just add the 'GrassFactory.cls' file to the project and it runs fine Smiley .
Logged

-Odin
crrrazydan
Community Member
*
Posts: 379


« Reply #10 on: April 29, 2003, 08:52:14 PM »

Someone break out the 3D Lawnmower mesh!

Watch out for the rocks though.
Logged


Visit SnowboardAssassins.shorturl.com for development updates.
odinsblade
Community Member
*
Posts: 262


« Reply #11 on: April 29, 2003, 09:19:04 PM »

*is almost done with his DontHitRock function...*
Logged

-Odin
Csakip
Community Member
*
Posts: 1008


« Reply #12 on: April 30, 2003, 01:58:53 AM »

Sorry guys. I found some bugs. I have changed the class a bit. You can download it from here:
http://www.nexus.hu/csakip/GrassFactory.cls
And the whole fixed tutorial is downloadable still from:
http://www.nexus.hu/csakip/GrassFactoryExample.zip

I don't know why the class wasn't included in the project. It of course should be. Smiley

Ant the movement code is from tutorial7 I just added grass.

Thanks for the comments. Wink
Logged

CsakiP
ovek
Community Member
*
Posts: 383


« Reply #13 on: April 30, 2003, 05:32:56 PM »

plz post screenshots, thx!
Logged
Chroma
Community Member
*
Posts: 173


« Reply #14 on: April 30, 2003, 06:51:03 PM »

or a compiled verion Smiley
Logged
wenching
Community Member
*
Posts: 1472


Hmm
« Reply #15 on: April 30, 2003, 09:55:37 PM »

I am quite suprised with your example... you can move on and on.. and you won't reach the end...like the earth...

I will look into your example (argh.. no vb6 knowledge), can you explain the concept you applied please?

Thanks.

Regards,
Chua Wen Ching :p
Logged

Cheers.

Regards,
Chua Wen Ching
Slider
Community Member
*
Posts: 1137


« Reply #16 on: May 01, 2003, 03:42:34 AM »

Quote
am quite suprised with your example... you can move on and on.. and you won't reach the end...like the earth...


Huh :?:  What code are you trying? The code I downloaded definitely has an end.
Logged

Slider is the name, and logic is my game...
Helping retards through life since 1981
wenching
Community Member
*
Posts: 1472


Hmm
« Reply #17 on: May 01, 2003, 07:49:48 AM »

I not sure.. i just download that source code.. and play with it..

all i press is the up button.. and it never ends... only see winter + grass

Regards,
Chua Wen Ching :p
Logged

Cheers.

Regards,
Chua Wen Ching
themamboman
Community Member
*
Posts: 9


« Reply #18 on: May 01, 2003, 09:38:32 AM »

The skybox is always at the same distance from the camera.  That's why it never ends.
Logged
crrrazydan
Community Member
*
Posts: 379


« Reply #19 on: May 01, 2003, 03:48:51 PM »

Oh he said "winter" because the landscape texture/heightmap is missing, and you can go on forever. This happened to me.

Try putting the grass example folder directly on the C drive and it should work (if your TV SDK folder is at c:\TV3DSDK)
Logged


Visit SnowboardAssassins.shorturl.com for development updates.
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks