May 23, 2012, 12:38:39 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Spawners  (Read 862 times)
Spaz
Full Member
***
Posts: 109


View Profile
« on: March 11, 2009, 06:29:04 PM »

Hey guys, here's a stupidly easy question for you.  Back in the BV days I had randomly placed trees in given areas of a terrain based on the texture it was painted with.  I'm assuming that's what we do with the Spawners tab when editing a terrain.  Have any of you used that feature yet?  How do we tell it what texture we want to spawn things on?
Logged
cohen
Newbie
*
Posts: 39


View Profile
« Reply #1 on: March 11, 2009, 06:34:46 PM »

+1 for me too.  I'd like to know how to do this.   Roll Eyes
Logged
Squat
Hero Member
*****
Posts: 592


View Profile
« Reply #2 on: March 11, 2009, 08:21:02 PM »

Open up the basicmultiplayer project and load the test.wld. You should see it done there.

The "trick", I believe, is to put the name of the ground texture used in the appropriate layer into the "TYPE" field.

So if layer one uses BigBadAssGrass.jpg for the actual ground texture, then whatever spawner object you want to disperse across that surface will have "BigBadAssGrass.jpg" in the TYPE field. Changing that field to something like "CliffFace.jpg" when you have a layer that uses a CliffFace.jpg will disperse those objects across that surface instead.

I believe it's done this way to let you acheive multiple different types of objects on one regular surface, but whether or not the spacing takes other spawners into account is up in the air, probably not.

Spelling and caps appear to be important.
Logged
Spaz
Full Member
***
Posts: 109


View Profile
« Reply #3 on: March 12, 2009, 01:55:01 PM »

Thanks, Squat.  That works . . . sort of.  I can get everything to show up just fine in the editor, but when I run the game nothing shows up.  I thought it might be a problem with Milkshape models again, but I tried it with an obj model (the same grass model used in the multiplayer demo), and I had the same problem. 

Anybody know why something would show up in the editor but not while the game is running?
Logged
Ron
Sr. Member
****
Posts: 326


View Profile
« Reply #4 on: March 12, 2009, 02:03:28 PM »

Anybody know why something would show up in the editor but not while the game is running?

Is it maybe the 'max distance' setting? Your view from the editor would be different than from the player perspective
Logged
Spaz
Full Member
***
Posts: 109


View Profile
« Reply #5 on: March 12, 2009, 03:36:22 PM »

Yeah, I've played with that value a lot, but it doesn't seem to make a difference when in playing mode.  I can see a big difference in the editor, though.  Really strange.  I'm sure there's some simple setting somewhere that I'm missing.
Logged
Spaz
Full Member
***
Posts: 109


View Profile
« Reply #6 on: April 29, 2009, 06:28:19 PM »

Figured this one out a while ago, actually, but figured I should let everyone know what I found out just in case any of you run into the same problem.  It turned out that layers had everything to do with it.  I simply added another layer to paint the texture on and suddenly the trees would show up at run-time as well as in the editor.
Logged
Architex
Full Member
***
Posts: 113


View Profile
« Reply #7 on: April 30, 2009, 12:53:11 PM »

Hey Spaz, did you have your models float in the air?  I'm trying to use this spawner feature, but me palm trees are floating, I need to figure out how to snap objects to the ground.  THere's gotta be a way, the template basic multiplayer has the palm trees in there snapped to ground perfectly, cant figure it out.  You have any thoughts?
Logged
gekido
Guest
« Reply #8 on: May 14, 2009, 04:24:16 PM »

if your trees are floating you need to lower them in your modeling package so that their local axis (0,0,0) is dug a bit into the ground.  the way the spawning system works is that the 0,0,0 position of the spawned objects is aligned with the terrain, but that position may not necessarily be the actual base of your model, if the object isn't centered and aligned properly.
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!