• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

stefu

RGBA makes my textures look worse.

5 posts in this topic

Why when I switch from RGB to RGBA image format, my textures look very ill? You can look at from followin link: www.geocities.com/stefankjb/ogl/weird.html Net Racing Demo: http://www.geocities.com/stefankjb/download.html
0

Share this post


Link to post
Share on other sites
What''s the bit-depth of the textures? It looks to me like you''re using 16-bit textures. In RGB, 16-bit textures will be R = 5 bits, G = 5 or 6, B = 5 bits. In RGBA mode, 16-bit can use one of two masks: ARGB = 1555 or ARGB = 4444. If it''s the second case, you have half as many possible colours in the texture, hence the ugly banding. If you want RGBA textures, make sure they are 32-bit.

Are you using opengl? If so, the way to make 32-bit textures is to use:

  
glTexImage2D( GL_TEXTURE_2D, GL_RGBA8, ... );


However, if your display mode is 16-bit, some graphics cards will not let you use 32-bit textures, and so opengl will automatically pick the next best mode (probably GL_RGBA4 which is the ugly mode I described before). If this is the case, change the display mode to 32-bit. If you do that, just using GL_RGBA should give you 32-bit textures.


War Worlds - A 3D Real-Time Strategy game in development.
0

Share this post


Link to post
Share on other sites
I''m using OpenGL and I have Voodoo3 2000.
It must be that ugly mode. But it didn''t help if I used 32 bit mode or GL_RGBA8. The result was the same ugly. Might it be the Voodoo, I think it''s very much 16 bit card?


Net Racing Demo:
http://www.geocities.com/stefankjb/download.html
0

Share this post


Link to post
Share on other sites
Maybe, though I though the newer voodoo cards were 32-bit?

Anyway, try GL_A1RGB8. It only gives you 1 bit of alpha, but if you''re stuck with 16-bit then it''s your best bet.

Did you try setting the display mode to 32-bit?


War Worlds - A 3D Real-Time Strategy game in development.
0

Share this post


Link to post
Share on other sites
I tried the 32 bit mode. If I used GL_RGBA8 in glTexImage2D(...) all textures were white (there weren''t any textures then). In 32 bit mode the GL_RGBA gave the same ugly look. I tried a lot of combinations but didn''t achieve better quality with alpha.

Using GL_RGB5_A1 gave all white so textures were not created!

Of course this is not so big problem because I''m using alpha only with some textures (like fonts).

By the way, is my call to glTexImage2D correct:

  
glTexImage2D(
GL_TEXTURE_2D,
0, // base level

4, // number of components

pImage->GetWidth(), pImage->GetHeight(), 0, // w,h,border

GL_RGBA, // format

GL_UNSIGNED_BYTE, //type

pImage->GetData() // data

);

My data is in format r8g8b8a8. I changed the format (to GL_RGB5_A1 ...). Does the format mean the format for OpenGL or the format of pImage->GetData()?
There''s also the parameter number of components: I saw someone used there GL_RGB but msdndoc says it is number of components. Again does it mean target or source components?


Net Racing Demo:
http://www.geocities.com/stefankjb/download.html
0

Share this post


Link to post
Share on other sites
voodoo1-3 r 16bit voodoo4-5 are 32 bit.
check the internal texture format demo on my site but basically what happens is when u ask for a RGB texture youll be given something like a R5G6B5 texture + if u ask for a RGBA texture youll get something like R4G4B4A4. ie each colour gets fewer bits thus will look worse

http://members.xoom.com/myBollux
0

Share this post


Link to post
Share on other sites