Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

2dfx Light Positioning


Recommended Posts


2DFX Lights Tutorial



In this tutorial I hope to show you how to use the 2DFX system to place lights.



Tools Required[/tr] Notepad On your computer Zmodeler Here



Many people think that the co-ordinates for a light are relative to the game world. This is wrong, the light posistion is not relative to the game world but to the object that it is on.
For this example I'm going add four lights onto the corner of my hut.
user posted image
Ensure that you have the object in game and working, If you have an object and would like to get it in game then please follow this tutorial





First off we need to get the co-ordinates of our object from zmodeler, zmodeler messes the co-ordinates up slightly, X: -29.312 Y: 3.21 Z: -420.123 is what you'd get from zmodeler. But its really,

X: 29.312 Y:420.123 Z:-3.21 zmodeler switches the Z and Y around and the X is the opposite of what zmodeler report it as. (Thanks To Deathsquad For The Co-Ordinates in Zmod)

In zmodeler you need to locate on the object where you want the light, so open up zmod and import your object, I'll be using a Top and Side view, to locate where I want them.
user posted image


Click Picture For Bigger Picture This is where you'll find the co-ordinatesuser posted imageI'm only going to do one light as the rest should be basicly the same to doIn a view (I chose top first) hover the mouse over roughly where you'd like the light to be, without moving the mouse look at the co-ordinates at the bottom rightuser posted imageIn my case we are after the X and Z co-ordinates which are

Z = 2.7110 and X = 1.1046 Thats what zmodeler reports they are, we'll wait till we have a full set, Now do the same for another view (I chose left) And zmodeler gives me the Y value to be 2.095, we now have a full set of co-ordinates

Z = 2.7110 Y = 2.095 X = 1.1046 These are correct and don't need fixing, sometimes zmod reports them wrong and sometimes it doesn't.

We are now finished with zmod so you can close that



We are now into notepad, you need to open up the IDE that the object is in, eg if you had an object called hut in roads.ide then then open roads.ide.

364, 0, 0, 0, 255, 255, 0, 200, 0, "coronastar", "shad_exp", 100, 8, 1, 0, 40, 0, 0, 0, 0 that is a 2dfx light code for a day and night light there are others, if you'd like to know more on these then read this


This is the screen you'd be presented with when you've opened your IDE file

user posted image
ID       X  Y  Z364, 0, 0, 0, 255, 255, 0, 200, 0, "coronastar", "shad_exp", 100, 8, 1, 0, 40, 0, 0, 0, 0, 



For this step change the ID number to the ID number of your object, and add the apporiate co-ordinates at the correct part


So it would look something like this


4805 1.1046, 2.095, 2.7110, 255, 255, 0, 200, 0, "coronastar", "shad_exp", 100, 8, 1, 0, 40, 0, 0, 0, 0



And that should be it, save that and test and you should end up with something like this, the color I've given you should be yellow you can change this, read this http://www.gtaforums.com/index.php?showtopic=102833 for more details.


user posted image
It takes a bit playing around with the co-ordinates to get it perfect
Edited by Gangsta Killa
Link to comment
Share on other sites

Burying your tutorial amongst tables and other formatting crap just makes the topic fifty kilobytes bigger and makes everything twice as unclear. Punctuate your damn sentances too. This really isn't a finished tutorial. Still, as it's a good subject and you have lots of useful info in it, here's the code for my revised version. You need to check links, spelling, punctuation and grammar yourself. You should have sorted that basic stuff out before you posted it.

Edited by Cerbera
Link to comment
Share on other sites

For f*cks sake Cerb, I swear you're against people helping others.


Ignore it. It's the content that counts. I don't care if you could optimize the trigonitrimgram by reusing tables with SQL or some sh*t, I can read every tutorial in this forum fine.


Back on topic: Great work! I used to use Webslayers 3DS exporter for my 2dfx, but it's suddenly decided to stop working. This explains the methods really well, and it's even taught ME something.


That is all.

Link to comment
Share on other sites



For f*cks sake Cerb, I swear you're against people helping others.


Swearing at me after I have taken the time and made the effort to clean up a messy tutorial shows that it is entirely you who is opposing helpful membership of this forum. His topic actually has broken formatting, including tables which can disrupt the topic structure.


I have fixed these formatting errors and also supplied a format which is easier to read, easier for him to add updates and which downloads faster. All the changes I've made benefit all those who will use this thread.

Edited by Cerbera
Link to comment
Share on other sites

ghost of delete key

Yikes! meeOW!


I really don't see what the problem is... so maybe the formatting suxx0rz...


It's really neither here nor there. This is what feedback is for.


BTW, you should put the [WIP] tag up for C&C on a WIP paper like this, GK.

This way you'll get more than just Cerbera picking at the carcass, and get a feel for how people respond to your content, layout, decor sensibilities wow.gif etc.


If the public thinks the formatting blows pez, they will say so.


Boy, will they say so.

Reference: Cerb's last post.




BTW, I don't think it sucks, but it IS just a bit thick.


You don't want to go to Church with THAT much makeup on nervous.gif


You may want to try "de-layering" it by 1 or 2 levels.


Wicked stuff inside.

It made fine sense to me, and I'm generally senseless, so clean it up a bit so that the Cro-Mags can read it.


Looks Good user posted image 8/10 huzzah colgate.gif




I have fixed these formatting errors and also supplied a format which is easier to read, easier for him to add updates and which downloads faster. All the changes I've made benefit all those who will use this thread.


You can lead a horse to porno, but you can't make him jerk off...


I just leave the magazines on the table. They'll check it out when the lights are off. bored.gif

Edited by ghost of delete key


"I can just imagine him driving off the edge of a cliff like Thelma & Louise, playing his Q:13 mix at full volume, crying into a bottle." - Craig

Link to comment
Share on other sites

thanks for the tut gangsta, this is gonna help me out bigtime, and thanks for fixing it Cerb, and thanks to opius for making me aware that there is a tool to help do this........cookies all round cookie.gifcookie.gifcookie.gifyin-yang.gif


edit:@opius where can i find webslayers tool ? i've tried searching the boards here, but can't find it

Edited by Gforce
Link to comment
Share on other sites

any chance a technique like this can be used to place a light on a vehicle?


i want to place a green light in the hunter to make it look like the cockpit glows.. just wondering if this is possible WITHOUT hardcoded the .exe

Link to comment
Share on other sites

  • 10 months later...

Update: Screenshots are working again, for whatever reason they were linked to localhost.. This tutorial is among a list of others of mine that are going to be updated.

Link to comment
Share on other sites


I started developing a simple CoronaStudio editor ages ago but never had time to find out exactly what all the parameters did:

user posted image

large image


The tool allows you to type in an absolute position for the coronastar effects and, as long as you entered the absolute position of an existing object, it will automatically calculate the relative position. This is good for people who want to use MooMapper or KEd rather than a full 3D modelling program since you can navigate the entire map at once, selecting items visually rather than scouring the IPL files for the correct instance.


If someone knows what all the parameters do, it would be a great help.

Link to comment
Share on other sites

When I do the updates, I'll have a play around with it cerb.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.