Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Making torchlight.

Author
Message
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 17th Aug 2003 22:05
My game has your main character equip a torch and when lit light should come off of him. I have tried many things. Point light and so on but I cant seem to get it right. You cant see the light around him and it only shows up when you get near other objects like a wall and you see the reflection. HELP!
Thanks in advance.
*** The DT Project ***
*** Maxillian Software ***
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 17th Aug 2003 22:33
uhh do you have the light follow the player like i don't know but i think you'd have to position the light so that way the player can sort of see the light out of the side of the screen and then tell the light to go in any direction the character moves?

like i said i don't know but atleast im suggesting

http://www.freewebs.com/ingamers
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 17th Aug 2003 23:25
Of course I have the light always positioned where the character is.
I'm not so sure a torch will be workable in this game cause it's not possible to let everyone have one. There's only 7 allowed.

*** The DT Project ***
*** Maxillian Software ***
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 17th Aug 2003 23:31
ALthough I would still like to do campfires and such. Just need to set up a light source that can be seen.

*** The DT Project ***
*** Maxxillian Software ***
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 17th Aug 2003 23:46
The 7 lights make you to be more resourceful in your programming. My level editor allows you to specify hundreds of lights that all work, because my engine only uses 7 lights and repositions them and alters the properties of them only as you reach them

"We are getting aggravated"
"Yes, we are"
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 17th Aug 2003 23:46
well then is this game multi player? or just alot of npc's because if your gonna have npc's then you might as well have 6 designated torce holders and the 7th be the player.

http://www.freewebs.com/ingamers
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 17th Aug 2003 23:57
Why not have the engine figure out which of the 7 lights is most prominent from that players view point and assign the 7 available lights there. The other 6000 lights can be ghosted spheres or something. If player 1 is holding a torch and player 2 is 3000 miles away holding a torch, there is no reason why both players games need to be assigning one of the 7 lights to the other player... see what I mean???? Oh, aching head!!!


Sex Junky... Looking for a Dealer!
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 18th Aug 2003 01:34
i think i misunderstood the guy that made this topic...

http://www.freewebs.com/ingamers
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 18th Aug 2003 03:20
What was the original question???


Sex Junky... Looking for a Dealer!
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 18th Aug 2003 03:23
are you trying to achieve a glow style affect for your light?? Is that what you mean by you can't get it to show up? Use a ghosted sphere, probably colored yellow to give the impression of the fire glowing...have it fade in and out and maybe play with some textures... Plus put a omni-directional light in the sphere to make it affect objects around it.


Sex Junky... Looking for a Dealer!
Dreamora
22
Years of Service
User Offline
Joined: 20th Sep 2002
Location: Switzerland
Posted: 18th Aug 2003 03:36
or better us a cylinder with a torch texture you scale and move on the cylinder... this gives the impression of a "real" fire if you assign a good torch ... or use a head over cone, would be even better than a cylinder but is a bit more problematik with the texture because you will need to unwrap a cone and apply the texture manually *scale and move/rotate around the y axis won't change anything to this*

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Aug 2003 10:18
Your problem intrigued me as it's something I've never tried to do before. So, here's what I've just knocked together!

It's not perfect, because I got into things I don't fully understand - ie making the lights work when pointing straight down.

Anyway, it might give you some ideas.

http://www.matedit.com/torch.zip (13K)

Move the torch around with the mouse and turn it on/off with the left mouse button.

As I said, there are a couple of errors with it - rotating the torch, lighting the floor and stopping the beam going through the matrix are just three!

If anyone knows how to fix these problems, by all means feel free and re-post the code so I can learn something too!

TDK
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 18th Aug 2003 13:43 Edited at: 18th Aug 2003 13:47
TORCH!!! Jeez, damn brits... Torch... stick with fire!!! Not a frick'n flashlight. If you want a flashlight, say a flashlight!!!!


Sex Junky... Looking for a Dealer!
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 18th Aug 2003 15:07
You all have great ideas. ifman1 with his most prominent torches and ghosted sphere's which is a great idea by the way. It's is a multiplayer and if there are more than 7 people grouped in the screen then instant problem. Thank you for the code TDK it will give me something to work with. Don't fret Underlord ..you tried ..thats what counts.

*** The DT Project ***
*** Maxxillian Software ***
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 18th Aug 2003 16:08
*It*

*** The DT Project ***
*** Maxxillian Software ***
<img src="http://www.madbbs.com/users/maxillian/pics/pcpunch.gif">
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Aug 2003 21:57 Edited at: 18th Aug 2003 22:45
Hey ifman1.

This forum is in the UK, so I'll call it a damn torch if I want to, because in the UK, that's what they are called.

OK, so I got the wrong type of torch - it was 4am at the time...

Damn yanks! (I'm assuming you are because they tend to refer to 'brits')

Seen my location?

TDK
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 19th Aug 2003 01:06 Edited at: 19th Aug 2003 01:07
"Yank" is something you do... it's a verb! A yanker would be something like a "wanker", I suppose, however that is more "british terminology so I'm no expert. Over here on this side of the pond we call people from the north "Yankees" (or that New York baseball team)

I personally am an "Army Brat"(that means my parents were in the army, yes my mother wore combat boots)! Born in California and raised in Germany! Spent time in Hawaii... which is kinda like japan but with more pineapples and it's own language! Since I've been in the army I've been to Australia which is awesome! Even if they drive on the wrong side of the road, Croc's rule, baby!!!! I bet they get so tired of Steve Irwin and Paul Hogan!
Maybe I'm like a yankee mutt thing that travels a lot...

What's a good name for spainiards??? Hmmmm... I've never had to yell at a spainiard before. Oh No!!!!

You know it's all in fun right? No harm intended. Although if you call it a torch again I'll have to challenge you to an UT2003 deul to the frag!!!


Sex Junky... Looking for a Dealer!
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 19th Aug 2003 07:14
So are these torches (fire on a stick) or flashlights (portable light bulbs)?

Xander
Bolt of Bolt Software Productions
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Aug 2003 09:03
"Yank" american
"Septic Tank" american
"Wanker" idiot
"brit" englishman
"Pom" englishman
"Torch" either a stick with flames or a baterry power portable light
"Dolphin" its a brand of waterproof torch everyone seems to have one at least

need any more clarity of what it all means in Australia mate?

k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 19th Aug 2003 11:54
australia? i thought they were talking about britian and america, er or was it uk?

Learn as if youll live forever
And give as if youll die tomorrow.
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 19th Aug 2003 18:32
Torches= Fire on a stick

*** The DT Project ***
*** Maxxillian Software ***
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 19th Aug 2003 18:59
So is Maxxillian's DT the same as Indi's DT??? Is there a law suit here? My money's on the Aussie... even if they did make Fosters!


Sex Junky... Looking for a Dealer!
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 19th Aug 2003 20:38
LOL I doubt they're the same

*** The DT Project ***
*** Maxxillian Software ***
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 19th Aug 2003 23:42
Wow, Maxx, you are old!!!


Sex Junky... Looking for a Dealer!
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 20th Aug 2003 07:31
All right, Max, here is some actual information you can use.

Method 1:
You should have a paint program like Corel PhotoPaint, Adobe Photoshop, or something decent you can use.
Create a new picture for a texture, probably 64x64 or 128x128, depending on how high of detail you want. Create a circle shaped gradient with yellow in the middle and fading to black. I would give you one I made, but my server is a real pain right now. I will try. Anyway, make a plain in your game for the "light object" and texture it with this picture. Now set it's rotation to zyx and point it at the camera every frame. make sure to position it on the tip of the torch, the same place as your light source. It will make a convincing lighting effect. This is what I always use, it is low poly.

Method 2:
Already described above, but I will repeat it anyway. Create a sphere in Dark Basic and color it yellow. Now place it on the tip of your torch. It will use more polygons, and I don't think it looks as good, but it is worth trying.

All right, I used my other server, but here are links to two textures that you can use for the first method, a textured plain pointed at the camera

[href]wave.prohosting.com/boltsoft/bright4.bmp[/href]
[href]wave.prohosting.com/boltsoft/light4.bmp[/href]

Hope it works out, Good Luck, Xander

Xander
Bolt of Bolt Software Productions
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 22nd Aug 2003 17:53 Edited at: 22nd Aug 2003 17:55
On another note. Does anyone know whats up with texturing a object? I can't seem to get the texture to tile instead of stretching across the entire face of the object.


Maybe I should start a new topic...

*** The DT Project ***
*** Maxxillian Software ***
zao420
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 22nd Aug 2003 22:59
that happens to me. but i haven't put any time in it to find out why. ben trying to get other stuff to work..
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 23rd Aug 2003 03:05
@Maxxillian - see SCALE OBJECT TEXTURE command. It controls the tiling of a texture on an object.

The programmer formerly known as sonic
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 25th Aug 2003 15:00
Direct quotes from the 'Oxford English Dictionary'

Torch 1. A portable battery-powered electric lamp. 2. A poece of wood, cloth, etc., soaked in tallow and lighted for illumination.

Flashlight 1. A light giving an intense flash, used for photographing by night, indoors, etc. 2. A flashing light used for signals and in lighthouses.

I hope this clears up any confusion. Maxxillian is clearly using a torch because trying to navigate with a flashlight would be moronic!

Nine lives to choose from and I get stuck with this one!
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 25th Aug 2003 17:44 Edited at: 25th Aug 2003 17:45
Yes ..it was a torch...however the limit on light is bad news. Why cant we have 256? Im not asking for 65,000. But within a multiplay game. Especially an RPG. It may become necessary to supply everyone with their own light source. I think the light commands still need a little tweaking. Besides light is a major component of any game. Thanks everyone for your help.

*** The DT Project ***
*** Maxxillian Software ***
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 25th Aug 2003 19:16
I believe it is a DirectX limitation, and not that it matters anyway as most graphics cards wouldn't be able to handle 256 dynamic lights.
Maxx illian
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 26th Aug 2003 01:01
Really? It's a DirectX limitation? O Geez...I withdraw my request then.

*** The DT Project ***
*** Maxxillian Software ***
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 26th Aug 2003 14:53
is the oxford dictionary written by brits????
My little abridged Websters says:
Torch n. flame bearing object.

and dictionary.com says Quote"

torch ( P ) Pronunciation Key (tôrch)
n.

A portable light produced by the flame of a stick of resinous wood or of a flammable material wound about the end of a stick of wood; a flambeau.
Chiefly British. A flashlight.
Something that serves to illuminate, enlighten, or guide.
Slang. An arsonist.
A portable apparatus that produces a very hot flame by the combustion of gases, used in welding and construction.

tr.v. Slang torched, torch·ing, torch·es
To cause to burn or undergo combustion, especially with extraordinary rapidity, force, or thoroughness.

"EndQuote

Note the: Chiefly British. A flashlight.

And what is this about a flashlight being... oh nevermind! If you're ever on this side of the pond I'll take you to see the big green lady in New York Harbor holding up her "Torch". Alright? Hey, we should organize a DB foreign exchange thing. You guys could come veg out on fast food and we could go get some fish and chips. You can visit Starbucks and we could have some tea and crumpets or something... yeah....


Sex Junky... Looking for a Dealer!
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Aug 2003 23:53
The 'Big Green Lady' is French so I wouldn't use her to further your argument if I were you.

Quote: "is the oxford dictionary written by brits????
"


The Oxford English Dictionary is written by English people because the language we speak is English. It is therefore the ultimate source of reference for English. Any other form of English (American English is a prime example) is a bastardization of the language and should therefore never be used as a reference.

Just accept it - a flashlight flashes. If it doesn't then don't you think it is a @*$"ing stupid name?

Nine lives to choose from and I get stuck with this one!
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 28th Aug 2003 05:51
Ok, Ok, Ok....
Quote:
"Portable electric lights are a relatively recent invention. Searching in a dark closet before 1896, one had to use a candle or kerosene lantern. Accidents occurred and fires followed. A safer alternative was needed. The first trustworthy lighting device was the flashlight, invented about 1896. Portable electric lights were called "flash lights" since they would not give a long steady stream of light. The carbon filament bulbs were inefficient and the batteries were weak, allowing the user to flash the light on for only a few seconds, then release the contact. Very early lights did not have an on/off switch, just a ring or tab that would push against a button or band of metal. When batteries and bulbs became more efficient, the switch was improved. As flashlight became popular, flashlight makers began to add decorative elements to the lights."

Sorry about my bastardization of your language... but anytime you want to stop bastardizing the names of american inventions just let me know! Actually, credit goes to some french guys, some american guy that did that whole light-bulb thing, and a german(Deutsch) guy that made batteries. The thing on a camera that flases is called a...(wait for it)... FLASH! It flashes. So it's called a flash! I can pull a handle in my car and make the headlights "Flash". We call it flashing oncoming traffic. So are those flash lights? Only if they're on the left side of the road, I guess. Silly, silly man!

Oh, and my reference for the quote ishref]
http://www.geocities.com/~stuarts1031/flashlight.html
[/href]

The big green lady has officially been adopted by americans and recieved her citizenship a long time ago (you can tell, she shaves her pits now). She even had some plastic surgery a few years back, how much more american can you get? Oh wait, that's just LA! Americans can be born anywhere! Except Texas.. I won't admit to anything texan!!!


Sex Junky... Looking for a Dealer!
TDK_Man
21
Years of Service
User Offline
Joined: 24th Aug 2003
Location: Tenerife, Spain
Posted: 1st Sep 2003 22:49
Sorry, this is all my fault!

All I did was write a code example using the wrong type of torch and I've nearly started world war 3 between the British and the Americans!!

Ah well, I am an ex-pat from the UK living off the NW coast of Africa, so at least I shouldn't get hit by any of the bombs!

Unless ifman1 aims one specifically at me...

TDK

MatEdit Pro Info & Progress Reports: http://www.matedit.com
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 2nd Sep 2003 04:57
Heh heh.... Boom baby!

Actually I just like to argue. There's never any harm meant. I thought this thread was great fun, and you sample was cool, (just it was a flashlight!) I'm only like the 2nd or 3rd generation of my family in america... I think my Grandmother is straight out of London, and she likes to argue too. I love Britain, I want to go to see some family in England and Ireland soon. Drink a pint. Start a fight. You know... have a good time. I may even smoke a fag in my nickers...(that sounds so gay in america... just so you know)

I think we should start a translation style forum where we can talk about localization and argue what words mean. We could discuss Engrish (all your base are belong to us!) and other localization issues. I know if I make a game I wouldn't want to inadvertantly offend half of britain when I wasn't trying (hey, if I'm going to offend you guys, it'll be on purpose, alright!) That would be a great forum. Me and Scraggle could have loads of fun on there. I noticed the Aussies didn't hang out long though. That's cause rugby players can't hang with american football! Yeah!

Oh, and Heineken has a 24 ounce Keg Can, I have found heaven and will forever hang out just outside the gates drinking my beer!

G'day all!


Sex Junky... Looking for a Dealer!
TDK_Man
21
Years of Service
User Offline
Joined: 24th Aug 2003
Location: Tenerife, Spain
Posted: 2nd Sep 2003 07:22


Yup - there are a few differences - you won't believe how bloody difficult it was to post this message!

I can't tell you how much I laughed when I first saw the US TV comedy show (I know that bit's debatable) The Nanny.

In the intro tune, the words to the song say that in her previous job she got thrown out on her f a n n y! I can't tell you what a woman's f a n n y is in the UK - it's a family forum after all...

And, while we are on the subject of words in a US TV show, what about Buffy The Vampire Slayer!!!

I'm not a big fan, but the other week I tuned in just in time to see the closing credits and was absolutely amazed to see one of the names in the credits was a Bob Winker (just replace the i with an a - the forum won't let me put his actual name)!

I mean, come on, surely no-one can really go through life with a name like that. I mean, surely he could have had it changed by deed poll or something.

Or am I the only person who thinks that Bob is a silly name!

(Only kidding if there are any Bobs out there)...

TDK

MatEdit Pro Info & Progress Reports: http://www.matedit.com
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 2nd Sep 2003 12:31
"Niel and Bob! Are those your names, or just what you do?"- Andrew Dice Clay, the Adventures of Ford Fairlane

Why won't the forum let you type Wanker?

And now I have to go find a Fanny web-site! That is sooooo cool! I never knew that!


Sex Junky... Looking for a Dealer!
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 3rd Sep 2003 21:13
Quote: "smoke a fag in my nickers"


Just so you know - It sounds pretty gay to a brit also

Quote: "We could discuss Engrish "


Is this another one of those 'little differences' or has even the name of the language changed over there?

Nine lives to choose from and I get stuck with this one!
ifman1
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 4th Sep 2003 12:11
Engrish... do a web search! It's the term given to bad localization and translations in video games! For example "all your base are belong to us". It's called Engrish because it's usually Japanese games that have the bad translations and grammar problems and in old movies and such they would make actors replace l's with r's to make them sound more japanese. Ever seen "a Christmas Story"? At the end the japanese guys are singing "Fa ra ra ra ra". It's a hoot! If you've never heard of Engrish you really should do a search for it. And I really do think we should have a Localization Forum, especially with the racial and cultural diversity of these forum.

And no, the only "new" language we have over here is "Ebonics". You too can sound like a moron in 3 easy steps! Hell, I think I'll move to Canada, no, wait, I don't think Canucks have internet yet! Damn!


Sex Junky... Looking for a Dealer!
ChipOne
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Canada
Posted: 5th Sep 2003 19:05
ohhhhhh buddy. i was on high speed before you cut your teeth, ifman. thanks for coming out. though

no, we canucks do, indeed, have internet and are one of the most 'connected' countries in the world with over 60% of the population using the internet on a daily basis.

such a shame your joke didn't pan out though.

engrish.com is a good source for your japenglish needs, if you're hungry.

...but then, what does any of this have to do with polish sausage?

-= i only do what my rice krispies tell me to do =-
orv
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 16th Sep 2003 19:45
@Maxxillian: the limit of lights for a multiplayer game should not be a problem.

That is unless all the players happen to be in the same spot at the same time!

Why? Because each player will be running their own instance of your program! Each play could use light#1 for example because each player is running their own copy of the program on their own PC!

If all the players are together you might try cylcing the position of the flame to each player's torch. This would flicker i think, but then, that's what torch are supposed to do!

hope this idea helps.

Login to post a reply

Server time is: 2024-11-25 08:27:44
Your offset time is: 2024-11-25 08:27:44