Development Planet Custom Sky

Status
Not open for further replies.

Vukodlak5235

Member
Aug 30, 2016
6
0
1
Hi, I'm making galacticraft addon and I have a problem. How do I create a custom sky for the planet? With custom celestial bodies in the sky and sun custom size and texture?


Thanks!

(Sorry for bad english)

Mod edit: Undeleted for being useful to other people with the same question. This forum is a community where everyone benefits, not a personal help-desk. Topic locked though.
 
Last edited by a moderator:

AlexSocol

Member
Mar 8, 2015
3
0
1
27
Тебе нужен собственный SkyProvider. В WorldProvider вызови getSkyRenderer и верни новый класс (создай свой). Внутри него будут несколько функций, но основной код пишется в render. Это самый обычный рендер, просто привязанный к координатам игрока. Используй Tessellator или просто OpenGL для отрисовки объектов на небе.

P.S. Сори, если не понимаешь русского - используй google translate, ибо мне лень думать как что будет на англ :D
 

Vukodlak5235

Member
Aug 30, 2016
6
0
1
Тебе нужен собственный SkyProvider. В WorldProvider вызови getSkyRenderer и верни новый класс (создай свой). Внутри него будут несколько функций, но основной код пишется в render. Это самый обычный рендер, просто привязанный к координатам игрока. Используй Tessellator или просто OpenGL для отрисовки объектов на небе.

P.S. Сори, если не понимаешь русского - используй google translate, ибо мне лень думать как что будет на англ :D
I created SkyProvider but it isnt working. Any help?
 

pra

Member
Mar 7, 2015
328
120
43
36
Overworld
Have a look at micdoodle8.mods.galacticraft.planets.mars.client.SkyProviderMars, for example. It helps if you make Eclipse find you all references to a class (select name, rightclick, references -> workspace), so you can see how to actually use it.
 

Vukodlak5235

Member
Aug 30, 2016
6
0
1
Have a look at micdoodle8.mods.galacticraft.planets.mars.client.SkyProviderMars, for example. It helps if you make Eclipse find you all references to a class (select name, rightclick, references -> workspace), so you can see how to actually use it.

I made skiprovider but do not know how to enable it. (I use Eclipse)

P. S I know a litle bit of Java coding.

(I use google translate, sorry for bad English)
 

RonFall

Member
Content developer
Vacuum Horizon
May 5, 2016
81
15
8
24
In your WorldProvider
Code:
@SideOnly(Side.CLIENT)
    @Override
    public IRenderHandler getSkyRenderer(){
        return CoreClientProxy.Kepler62ESkyProvider;
    }
In your ClientProxy
Code:
public static final IRenderHandler Kepler62ESkyProvider = new Kepler62ESkyProvider();
If you have time it is better to study Java.
 

Vukodlak5235

Member
Aug 30, 2016
6
0
1
In your WorldProvider
Code:
@SideOnly(Side.CLIENT)
    @Override
    public IRenderHandler getSkyRenderer(){
        return CoreClientProxy.Kepler62ESkyProvider;
    }
In your ClientProxy
Code:
public static final IRenderHandler Kepler62ESkyProvider = new Kepler62ESkyProvider();
If you have time it is better to study Java.

It doesn't work...
 
Status
Not open for further replies.

Share this page