sciguy1121 / Community-Mod-1

Community Mod 1
GNU Lesser General Public License v3.0
10 stars 16 forks source link

Texture Issues #178

Open EliSussman opened 11 years ago

EliSussman commented 11 years ago

This is an issue to address any issues people encounter when texturing or problems with textures :)

EliSussman commented 11 years ago

Does anybody know how to make connected textures without optifine or mcpatcher?

EliSussman commented 11 years ago

@sciguy1121 @smigolpol Anyone?

ghost commented 11 years ago

Maybe we should use getUnlocalizedName() instead of having getTextureName in every single class related to a block or item.

EliSussman commented 11 years ago

@LegioXV Thats an idea. If you think so than fix it and make a pull request. :)

Techtad commented 11 years ago

No. The only reason that we're using getTextureName is because getUnlocalizedName won't work because it doesn't return the unlocalized name itself, it always adds "item_" in front of it

EliSussman commented 11 years ago

Anybody know anything about connected textures?

EliSussman commented 11 years ago

Anyone?

ghost commented 11 years ago

@KingCreeperEli I don't think it's possible.

EliSussman commented 11 years ago

How does xycraft do it? @LegioXV

ghost commented 11 years ago

@KingCreeperEli xycraft has connected textures?

EliSussman commented 11 years ago

The glass... @LegioXV

ghost commented 11 years ago

@smigolpol this.getUnlocalizedName().substring(5) doesnt add the item_ prefix.

EliSussman commented 11 years ago

@LegioXV I just checks and the glass in xycraft is definitely a connected texture

ghost commented 11 years ago

I dont know what xycraft glass is.

EliSussman commented 11 years ago

in the mod xycraft, they have glass that has connected textures @LegioXV

ghost commented 11 years ago

@KingCreeperEli what's the glass called.

EliSussman commented 11 years ago

glass viewers

ghost commented 11 years ago

All i managed to see using jd-gui was that xycraft has a custom block rederer for connected textures.

EliSussman commented 11 years ago

@smigolpol @sciguy1121 Do you know anything about connected textures or how xycraft uses them?

EliSussman commented 11 years ago

I have tried to look at the code but there is no way for me to read it...

EliSussman commented 11 years ago

Anybody have an idea how to make connected textures because I want to use some in the mod and as the lead texture developer I really wish I knew how :/

EliSussman commented 11 years ago

@smigolpol @sciguy1121 @LegioXV ?????

sciguy1121 commented 11 years ago

@KingCreeperEli I have no idea, sorry. Perhaps you could do a check for surrounding blocks, and then change the texture based on that?

EliSussman commented 11 years ago

I have no idea and xycrafts code is unreadable sooo... I guess my titanium glass connected texture is useless... :(

EliSussman commented 11 years ago

@smigolpol any idea...im still not giving up...I think it needs a custom texture renderer but thats all I can figure out...

Techtad commented 11 years ago

I don't think you need custom block renderer for that. I think you just need to check for touching blocks and set the right textures on right sides. I think Xycraft uses the block renderer for something else like the glowing effect or something, but I don't know...

EliSussman commented 11 years ago

@smigolpol Well, then do you know or could you experiment with the kind of code to do that? In your free time of course Im not forcing or rushing you, just want to eventually know how to do this :)