How to work with lights,placed in Q3Radiant?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

How to work with lights,placed in Q3Radiant?

Post by MessiaH »

I've seen screenshot from one Irrlicht fps game,with lights,affecting weapon model.
The author said thad he placed the lights directly in Radiant,and dynamic lighting of weapon was ok.
How to do it?
(I mean:I've placed lights in Radiant,how can i make my weapon model lighted according to them?)
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

Post by MessiaH »

I've remembered whose prog it was!
It was "Early screenshots of my first person shooter" by s32_weaselType!

s32_weaselType,cant you say how you ve done it?!

I also have Radiant map and weapon model.but weapon model isnt lighted at all!!! :cry: :cry: :cry:
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

I guess he used the class to read more info from a .bsp, and then placed dynamic lights on the same places...
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

Post by MessiaH »

Maybe,maybe...
Dont you know his mail or homepage?!

Here is mine ugly screenshot(xcuse for compreesion).
[/img]


[img][/img]
Flatline
Posts: 49
Joined: Fri Sep 03, 2004 7:46 am
Location: England

Post by Flatline »

Bal is right, that's presumably what they did. I'm currently working on a series of modifications to CQ3MeshNode which will not only load the basic mesh in, but also load entities from the map data, which would of course include lights. Simple enough, and there's an existing class on this forum already that goes a good way towards it, if you look for it. The reason I'm doing mine from scratch is that I also need to parse the model data for func_ type entities, which need face information for building.
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

Post by MessiaH »

Is there any ready code for this purpose?!
I've loaded some ready classes for this,but there were no lightSceneNodes!
I mean,somehow he did it! :roll: :roll: :roll: :roll: :roll: :roll: :roll:
Flatline
Posts: 49
Joined: Fri Sep 03, 2004 7:46 am
Location: England

Post by Flatline »

As I said, no, not yet. There IS an entity loader class posted on the forum somewhere but you'd have to interpret the data yourself and place in the light nodes in your own code. It shouldn't prove that difficult.
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

Post by MessiaH »

And dont you remember exact adress?
Flatline
Posts: 49
Joined: Fri Sep 03, 2004 7:46 am
Location: England

Post by Flatline »

In the FAQ forum, which you could quite easily have searched and found yourself, as I did:

http://irrlicht.sourceforge.net/phpBB2/ ... tity#19380

That does pretty much what you want, and you get your entities in a nice linked list format that you can then convert to appropriate scene nodes.
Post Reply