Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (91,319 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

guru_guru

Better Skybox

Recommended Posts

guru_guru

I've fixed!

 

Bug fix and improvement: I've added the skies models without replacing and then was fixed this ped issue. I can't explain how........

Download bellow also includes fixed .txd files (DXT5):

 

https://drive.google.com/file/d/0B1sAJQAUfOOYS3JTWV9EZl83VWc/view

 

Check now the mod files, I've added some explanations and it's recommended to use Open Limit Adjuster (or configure fastman92 limit adjuster to add new col files); Updated post on MixMods.

 

Now the mod is almost perfect :)

Lol thanks senpai :lol: ,you should have asked for source code anyways (it's a mess,but at least its better than edit a low-level code).

 

I added the remaining skies and source code so may want to edit your post on MixMods

 

It would be perfect to exploit this to avoid stuff like this

 

 

IMO, you should lower the number of stars in city area, it looks weird that ls has Soo much stars at night because the city has so much lights, therefore so much stars doesn't look real... Areas having no light such as country side with stars at night is ok...

 

Can you add rainbow in SA???

The default one is sh*t, hope you will remade it..

 

Only suggestion!

 

Yeah,I was thinking the same thing about the stars too ,but I'm to lazy to edit the textures by hand,I only removed the bloomy effect of the stars on cities.

Anyways,feel free to edit them by yourself and if you do,post them here ;)

 

 

About the rainbows ,no cuz they gay, yeah that sounds cool,I may add it if I had a texture for it...

Edited by guru_guru

Share this post


Link to post
Share on other sites
kkjj

I will do..

Share this post


Link to post
Share on other sites
Gramps

So if its not dependent on P2DFX anymore, what controls the distance?

I managed to get a quick test in, and noticed clouds/stars appearing in front of buildings

Also, are the default SA clouds still rendered?

 

e392e5594932223.jpg 5bdf7f594932383.jpg c6ba0e594932543.jpg

 

On the third screenshot you can see the two stars that are going through the tower in the background.

Ignore the corona going through CJ, I think thats a bug from a different mod.

Edited by Gramps

Share this post


Link to post
Share on other sites
guru_guru

I found some addresses that stores current draw distance,so it's controlled by the game, a mix between current timecyc Farclp and player z position.

 

About the clouds going through the buildings,I am almost sure that can be fixed tweaking the ide flags. I'll look into it today.

 

I haven't touch default clouds.

Share this post


Link to post
Share on other sites
XaosOfficial

Beautiful modification! :lol:

Edited by XaosOfficial

Share this post


Link to post
Share on other sites
Gramps

About the clouds going through the buildings,I am almost sure that can be fixed tweaking the ide flags. I'll look into it today.

Unsure if this would work. I think they're already set to 9999.

Share this post


Link to post
Share on other sites
guru_guru

 

About the clouds going through the buildings,I am almost sure that can be fixed tweaking the ide flags. I'll look into it today.

Unsure if this would work. I think they're already set to 9999.nope, that's object draw distance. Flags are represented with the last value.

Some objects on SA gets rendered like this (http://i.imgur.com/oUdnv2o.png) and I'm almost sure that happens because wrong flags are set

Share this post


Link to post
Share on other sites
Junior_Djjr

It's viable to disable SA default clouds?

It didn't bother me much, but I think it would be good. As so SA default clouds drops FPS and are ugly.

 

From Mix Sets:

 

 

// Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1
And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended)

 

// Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1

If there was any way for a object to always be drawn after all objects (ignoring who is in front), your problem will be totally solved.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
guru_guru

It's viable to disable SA default clouds?

It didn't bother me much, but I think it would be good. As so SA default clouds drops FPS and are ugly.

 

From Mix Sets:

 

 

// Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1
And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended)

 

// Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1

If there was any way for a object to always be drawn after all objects (ignoring who is in front), your problem will be totally solved.

Thanks, I was about to add these functions too but the after decompiling Mix Sets it gave me some weirds values at those addresses (8 bytes values if I recall...) .Also ,5 bytes? I thought you could write 1,2 or 4 bytes.

Share this post


Link to post
Share on other sites
Crspy

 

Thanks, I was about to add these functions too but the after decompiling Mix Sets it gave me some weirds values at those addresses (8 bytes values if I recall...) .Also ,5 bytes? I thought you could write 1,2 or 4 bytes.

 

 

Actually it acts like a memory filling function when you pass 1 Byte ( like 0x90 ) and the size is something higher than Dword , as you can see in the Default Case. so if you did something like that > 0A8C: write_memory 0x53E121 size 8 value 0x90 vp 1

it will fill the memory with 0x9090909090909090
OpcodeResult __stdcall opcode_0A8C(CRunningScript *thread){	GetScriptParams(thread, 4);		void *Address	= opcodeParams[0].pParam;	DWORD size		= opcodeParams[1].dwParam;	DWORD value		= opcodeParams[2].dwParam;	bool vp			= opcodeParams[3].bParam;	switch (size)	{	default:		GetInstance().CodeInjector.MemoryWrite<BYTE>(Address, value, vp, size);		break;	case 2:		GetInstance().CodeInjector.MemoryWrite<WORD>(Address, value, vp);		break;	case 4:		GetInstance().CodeInjector.MemoryWrite<DWORD>(Address, value, vp);		break;	}	return OR_CONTINUE;}
Edited by Crspy

Share this post


Link to post
Share on other sites
guru_guru

^^^

Oh cool, that may come in handy later

Share this post


Link to post
Share on other sites
mione

Any reason why this doesn't work for me? I dragged everything in the modloader folder, modloader logs show that everything is being imported/injected but I still have vanilla clouds.

 

I'm using it on SA-MP, by the way.

Share this post


Link to post
Share on other sites
Gramps

Newopcodes?

Share this post


Link to post
Share on other sites
guru_guru

Any reason why this doesn't work for me? I dragged everything in the modloader folder, modloader logs show that everything is being imported/injected but I still have vanilla clouds.

 

I'm using it on SA-MP, by the way.

I mostly did this for SP so idk.

 

Use ScrLog, search thread 'nube' and post its log here (inside a spoiler please)

 

But,AFAIK, previous versions worked fine with samp and that could be because I was using SA models instead of added models.You could try changing the IDs in the .ini (and ofcourse,change the filename of the skies accordingly)

Share this post


Link to post
Share on other sites
MatthewFarrell

Clouds in mirrors lel

7941ea32cc8f.png

Share this post


Link to post
Share on other sites
Gramps

If there was any way for a object to always be drawn after all objects (ignoring who is in front), your problem will be totally solved.

Onyx uses a skybox for his V2SAxIV2SA. Doesn't appear to have this bug? Maybe could ask him how he did it..

Share this post


Link to post
Share on other sites
Junior_Djjr

↑ this can be "fixed" increasing draw distance (mainly fog distance). It isn't a real fix btw.

Maybe some more experienced guy can have a solution as I said above, apparently it is easily possible, but I don't know how.

 

 

@MatthewFarrell Damn, SkyBox need to be disabled at interiors :p

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
guru_guru

@MatthewFarrell

Ooops,the skyboxes weren't deleted inside interiors (so if you saved inside,I may have f*cked up your save,sorry for that)

Anyways,I fixed this with the new version.

 

 

On other news,maybe I should start using actual skyboxes (and probably change the name of this mod to Better Skydome too) because from what I've seen, SA renders everything in a cube.

This could fix (or at least make it less noticeable) the clouds and stars going through buildings...

Edited by guru_guru

Share this post


Link to post
Share on other sites
Gramps

@Junior

Does MixMods also remove the same clouds as SkyGFX?

 

 

 

disableClouds=1 ; Disable the far clouds on the horizon. They're bugged on the PS2. (cannot be toggled at runtime)

 

 

From Mix Sets:

// Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1
And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended)
// Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1

 

 

Edited by Gramps

Share this post


Link to post
Share on other sites
Junior_Djjr

On other news,maybe I should start using actual skyboxes (and probably change the name of this mod to Better Skydome too) because from what I've seen, SA renders everything in a cube.

This could fix (or at least make it less noticeable) the clouds and stars going through buildings...

But is not the object rotating for the rotating clouds?

1.png

And even profissional game developers call this "skybox" even if isn't a box. It's very common. As so generally isn't a dome but a sphere, and we never read people saying "skysphere".

 

@Junior

Does MixMods also remove the same clouds as SkyGFX?

 

 

 

disableClouds=1 ; Disable the far clouds on the horizon. They're bugged on the PS2. (cannot be toggled at runtime)

 

From Mix Sets:

 

// Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1
And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended)

 

// Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1

 

 

 

No, I didn't remember that either.

MixMods, ha.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
jrnaufal2

Support imvehft 2.1.1?

Share this post


Link to post
Share on other sites
Finn The Human

Support imvehft 2.1.1?

It will crash the game in the evening

Share this post


Link to post
Share on other sites
natanplayer

how to fix it?

 

gOk80Qx.png

Share this post


Link to post
Share on other sites
LaDiDa

Not (yet). It's being looked into by the author though.

Share this post


Link to post
Share on other sites
guru_guru

how to fix it?

 

gOk80Qx.png

As LaDiDa said,no fix for that yet.But increasing draw distance helps.

Share this post


Link to post
Share on other sites
guru_guru

updoot

 

-rewritten from the scratch to Lua so you'll need MoonLoader And MoonAditions.Added a few improvements too so the script should be faster than before.

-skies gets deleted when you are about to save your game,so now it's compatible with "auto-save" mods

 

I'll change the OP later.

 

Also , SA-MP version. (not tested)

Share this post


Link to post
Share on other sites
DK22Pac

Good, finally people understand that SCM is an outdated technology for creating complex mods.

Note/Next step: learn programming and shaders and create even better skybox.

Share this post


Link to post
Share on other sites
guru_guru

Lol,I'm pretty sure I don't represent the people who make scripts mods.But I think that only a few will start to use more updated tools to create these.

I've seen a lot of people starting to code with SCM while a better alternative to this is GTA3script.

 

Anyways,I problably won't start soon but I would love some directions on the Next step.

 

 

 

 

Even better skybox.

 

This is going to be name for the next version lmao.

 

 

Share this post


Link to post
Share on other sites
LaDiDa

Seperate skies per weather type as defined in timecyc.dat (sunny, extra sunny, cloudy, rainy). Maybe some textures that don't show jpeg artifacts on darker colors.

Share this post


Link to post
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

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×

Important Information

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