RUS New site

Advanced search

[ New messages · Forum rules · Members ]
Page 3 of 6«123456»
Forum » SpaceEngine » Mods and Addons » Shader programming (Questions and answers about shader programming)
Shader programming
JackDoleDate: Wednesday, 13.01.2016, 21:12 | Message # 31
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
Quote SpaceEngineer ()
Why? If black hole have a disk, then it must have a jet. One is impossible with another. Jet function could be added in the code in thr same way as the disk, and must blend with it correctly.

Okay, I have not thought about it enough. sad





Don't forget to look here.

 
JackDoleDate: Sunday, 17.01.2016, 15:51 | Message # 32
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
I wonder if it would be possible a shader - for example, the shaders for selenas or asteroids to change so that they generate rectangular structures.




Don't forget to look here.

 
FireintheholeDate: Sunday, 17.01.2016, 16:18 | Message # 33
Pioneer
Group: Translators
Sweden
Messages: 356
Status: Offline
Quote JackDole ()
I wonder if it would be possible a shader - for example, the shaders for selenas or asteroids to change so that they generate rectangular structures.

For what use?





Love SpaceEngine!
 
quarior14Date: Sunday, 17.01.2016, 16:24 | Message # 34
World Builder
Group: Users
Pirate
Messages: 646
Status: Offline
Quote Fireinthehole ()
Quote JackDole ()
I wonder if it would be possible a shader - for example, the shaders for selenas or asteroids to change so that they generate rectangular structures.

For what use?

I think it is to try to make buildings not ? Otherwise natural rectangular shapes, I too see what it is.





Quarior
 
JackDoleDate: Sunday, 17.01.2016, 16:42 | Message # 35
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
Quote Fireinthehole ()
For what use?

Actually, I was thinking of the Death Star, but for a planet like Trantor it might also be suitable. cool






Don't forget to look here.

 
quarior14Date: Sunday, 17.01.2016, 16:53 | Message # 36
World Builder
Group: Users
Pirate
Messages: 646
Status: Offline
@JackDole
Quote JackDole ()
Quote quarior14 ()
Ride with the Missile Boat around Death Star :

Would be great if SpaceEngine could create surface textures of objects such as the Death Star procedural.

Oh, I wish you good luck (I was almost, buildings and the Death Star are artificial smile ).
I just noticed that if get you, it can serve me for Commerce Central even if it is in fact a planet destroyed city but "Hollows" look but I do not know if we can make a shader for a specific object, in any case, we can not create a new class with a shader sad .





Quarior

Edited by quarior14 - Sunday, 17.01.2016, 16:54
 
JackDoleDate: Friday, 22.01.2016, 19:08 | Message # 37
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
Modified Sun shaders that let giants and supergiants look like this:

NML Cygni




UY Scuti




Westerlund 1-26




Other stars remain normal.

Attachments: 7832872.jpg(109Kb) · 8817941.jpg(152Kb) · 9527019.jpg(123Kb) · SunShader.zip(2Kb)





Don't forget to look here.

 
DoctorOfSpaceDate: Friday, 22.01.2016, 19:30 | Message # 38
Galaxy Architect
Group: Global Moderators
Pirate
Messages: 3600
Status: Offline
Quote JackDole ()
Modified Sun shaders that let giants and supergiants look like this:


I can see quite a few people enjoying this, however for those who want a bit more realistic giant stars I would recommend only using the glow shader



Might need some tweaking but that alone could make some nicer looking giant stars





Intel Core i7-5820K 4.2GHz 6-Core Processor
G.Skill Ripjaws V Series 32GB (4 x 8GB) DDR4-2400 Memory
EVGA GTX 980 Ti SC 6GB
 
JackDoleDate: Friday, 22.01.2016, 19:59 | Message # 39
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
Then maybe you should also undo the changes that correspond to the changes in the 'height shader'.


Attachments: 2782717.jpg(114Kb) · tg_sun_glow.glsl(3Kb)





Don't forget to look here.



Edited by JackDole - Friday, 22.01.2016, 20:07
 
DoctorOfSpaceDate: Friday, 22.01.2016, 20:05 | Message # 40
Galaxy Architect
Group: Global Moderators
Pirate
Messages: 3600
Status: Offline
Quote JackDole ()
Then maybe you should also undo the changes that correspond to the changes in the 'height shader'.


Indeed, noticed right after posting. smile





Intel Core i7-5820K 4.2GHz 6-Core Processor
G.Skill Ripjaws V Series 32GB (4 x 8GB) DDR4-2400 Memory
EVGA GTX 980 Ti SC 6GB
 
JackDoleDate: Friday, 22.01.2016, 20:08 | Message # 41
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
In fact, it's just this one change that makes the thing.

Code
        // vec3  p = point * colorDistFreq + Randomize;
            vec3  p = point * colorDistFreqReplace + Randomize;            // *** That's what matters. No idea why. ***


Where 'colorDistFreqReplace' is equal to 1.0





Don't forget to look here.

 
DoctorOfSpaceDate: Friday, 22.01.2016, 20:15 | Message # 42
Galaxy Architect
Group: Global Moderators
Pirate
Messages: 3600
Status: Offline
After doing that you should try changing

Code
        // Flows
        noiseOctaves = 5;


to

Code
        // Flows
        noiseOctaves = 10;







Intel Core i7-5820K 4.2GHz 6-Core Processor
G.Skill Ripjaws V Series 32GB (4 x 8GB) DDR4-2400 Memory
EVGA GTX 980 Ti SC 6GB
 
JackDoleDate: Friday, 22.01.2016, 20:49 | Message # 43
Star Engineer
Group: Local Moderators
Germany
Messages: 1737
Status: Offline
This can be done. And there are more values with which you can play around. biggrin cool



This is the shader with minimal changes. But it affects all the stars.
Rename the attached file into "tg_sun_glow.glsl".

Attachments: 0082158.glsl(2Kb)





Don't forget to look here.



Edited by JackDole - Sunday, 24.01.2016, 00:28
 
DoctorOfSpaceDate: Friday, 22.01.2016, 23:17 | Message # 44
Galaxy Architect
Group: Global Moderators
Pirate
Messages: 3600
Status: Offline
Quote JackDole ()
But it affects all the stars.


Avoiding this should be a goal of such edits.




That change in noise seems like it makes a world of difference in the detail on giant stars



With that simple noise edit stars look much nicer



SE has fairly accurate giant stars
http://www.aip.de/en....n-a-box





Intel Core i7-5820K 4.2GHz 6-Core Processor
G.Skill Ripjaws V Series 32GB (4 x 8GB) DDR4-2400 Memory
EVGA GTX 980 Ti SC 6GB
 
HarbingerDawnDate: Friday, 22.01.2016, 23:51 | Message # 45
Cosmic Curator
Group: Administrators
United States
Messages: 8714
Status: Offline
Quote DoctorOfSpace ()
With that simple noise edit stars look much nicer

It looks more detailed, I would disagree that it looks nicer. I think toning down the scale of the lumps is what's needed, both in terms of size and amplitude.





All forum users, please read this!
My SE mods and addons
Phenom II X6 1090T 3.2 GHz, 16 GB DDR3 RAM, GTX 970 3584 MB VRAM
 
Forum » SpaceEngine » Mods and Addons » Shader programming (Questions and answers about shader programming)
Page 3 of 6«123456»
Search: