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.zipMaybe 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. 
|
|
|
|
|
Logged
|
|
|
|
|
SylvainTV
|
 |
« Reply #2 on: April 29, 2003, 09:24:33 AM » |
|
Nice !! yea we will definitively add it for the sdk 
|
|
|
|
|
Logged
|
|
|
|
|
bbence
|
 |
« Reply #3 on: April 29, 2003, 09:57:42 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.zipMaybe the media file's path should be altered! So nexus.hu works from abroad? Nice.  This info alone is very useful for me but also the sample looks good. Keep up the good work! 
|
|
|
|
|
Logged
|
|
|
|
Glidisen
Community Member

Posts: 324
|
 |
« Reply #4 on: April 29, 2003, 10:20:00 AM » |
|
Very nice tutorial!!!  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 » |
|
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. 
|
|
|
|
|
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..  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! 
|
|
|
|
|
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  .
|
|
|
|
|
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
|
|
|
|
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.clsAnd the whole fixed tutorial is downloadable still from: http://www.nexus.hu/csakip/GrassFactoryExample.zipI don't know why the class wasn't included in the project. It of course should be.  Ant the movement code is from tutorial7 I just added grass. Thanks for the comments. 
|
|
|
|
|
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 
|
|
|
|
|
Logged
|
|
|
|
wenching
Community Member

Posts: 1472
|
 |
« 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 » |
|
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
|
 |
« 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
|
|
|
|
|