Jump to content
  • Advertisement

Scarlet Harlot

Member
  • Content Count

    17
  • Joined

  • Last visited

Community Reputation

100 Neutral

About Scarlet Harlot

  • Rank
    Member
  1. Scarlet Harlot

    Saving out dds dxt5 with Devil/Opengl

    Okay the solution to this isn't really a solution. DevIL actually has the capability to compress within it. After downloading the source, i saw that it can use Nvidia, squish or its own system to compress DDS files. I wish I'd known that before i spent a week reading up on dds and dxt compression. Oh well, we live and learn.
  2. Scarlet Harlot

    [C++, SDL] Text input and level editors

    Ahh, afte a quick google, it seems like a little bit of a pain to implement...
  3. Scarlet Harlot

    [C++, SDL] Text input and level editors

    Writing your own seems to be drawing the focus away from your actual goal. I'm no expert, but Qt is cross platform and very pretty and you can embed OpenGL windows within it. I'd rather have an easy, fast and attractive GUI system handed to me so I could focus on the fun stuff. But hey, that's just me.
  4. Hey guys, I've been racking my brain trying to figure this out and it seems it is beyond me. I'm trying to compress some RGBA data and then save it out using DevIL void compressBlock(void* uBuf, unsigned char* cBuf, int xSize, int ySize, bool ogl, int dxtformat) { if (ogl) { GLuint temp; glGenTextures(1, &temp); glBindTexture(GL_TEXTURE_2D, temp); glTexImage2D(GL_TEXTURE_2D, 0, dxtformat, xSize, ySize, 0, GL_RGBA, GL_UNSIGNED_BYTE, uBuf); glGetCompressedTexImage(GL_TEXTURE_2D, 0, cBuf); glDeleteTextures(1, &temp); } } this first method returns cbuf with the compressed data which is then passed into an ImageObject structure I've created, which is turn is passed : bool ImageSaver::saveWithDevil(const ImageObject& src, const char* filename) { if (!g_DevilInitialised) DevilInitialise(); int devFmt = FormatTranslate_GLToDevil(src.getFormat()); // return = IL_DXT5 int chNum = GetNumberOfChannels(src.getFormat()); // return = 1 ILuint devil_id; ilGenImages(1, &devil_id); ilBindImage(devil_id); ilSetInteger(IL_DXTC_FORMAT, devFmt); ilTexImage(src.getSize().x, src.getSize().y, 1, chNum, devFmt, IL_UNSIGNED_BYTE, 0); void* ptr = ilGetData(); memcpy(ptr, src.getData(), src.getSize().x*src.getSize().y*glGetImageFormatSize(src.getFormat())); ilEnable(IL_FILE_OVERWRITE); bool ret = ilSaveImage((ILstring)filename) ? true:false; ilBindImage(0); ilDeleteImages(1, &devil_id); return ret; } Is there anything wrong with this as you see it? I'm finding it difficult to find a code snippet that does something similar, which indicates that I am getting it wildly wrong. Any help would be really great. Thank you, Nic.
  5. Scarlet Harlot

    Access violation with gluBuild2DMipmaps

    Thanks so much, that was a real help. :D
  6. When I try to load a tga texture with a width of over approx 3990 I'm getting an access violation at the gluBuild2DMipmaps(), If i lower the resolution to just below it, then all works like a charm. Is there some sort of cap on the number of pixels it can handle? Code: gluBuild2DMipmaps(GL_TEXTURE_2D, pImage->channels, pImage->sizeX, pImage->sizeY, textureType, GL_UNSIGNED_BYTE, pImage->data); Values: GL_TEXTURE_2D, pImage->channels = 3, pImage->sizeX = 4406, pImage->sizeY = 1024, textureType = GL_RGB, GL_UNSIGNED_BYTE, pImage->data = image data Error: Unhandled exception at 0x68b27372 in dt.exe: 0xC0000005: Access violation reading location 0x02ea9000. Thanks in advance! Nicci
  7. Scarlet Harlot

    11 most painfully obvious newspaper articles

    All my work collegues know I'm slacking because I'm crying with laughter. XML isn't THAT funny!
  8. Scarlet Harlot

    Your favourite game?

    Pac-Man Half life 1 Portal Tomb Raider 2 Tetris Heavenly Sword Call of Duty 4 Silent Hill
  9. Scarlet Harlot

    Runescape-like graphics

    jagex use an inhouse manipluation of java script if i remember correctly. I had an interview there once....never got the job. my spellign and grammer are aweful. there is no spell check on a piece of paper >_<
  10. Scarlet Harlot

    quadratic pains

    >_> I'm embarrassed. i mingled two thread up in my head and thought i remembered him mentioning c#. he didnt, i was incorrect. and i will try to be more thorough in my desciptions and/or grow a thicker skin. =) Edit: it worked, thank you very much!
  11. Scarlet Harlot

    quadratic pains

    jeepers! 0_o okay then... variables: GLUquadricObj *quadratic; init: quadratic=gluNewQuadric(); gluQuadricNormals(quadratic, GLU_SMOOTH); gluQuadricTexture(quadratic, GL_TRUE); display: gluCylinder(quadratic,1.0f,0.0f,3.0f,32,32); ^^^ the code i have used from NeHe tutorial 18, it works VS 6.0 on my desktop, but on my laptop in MS Dev Envrioment 2003 it wont. Here is the error i receive. I have checked to make sure i had the .dll in the right place, it is. I have linked all the right .dll's and my includes look like this: #include <cstdlib> #include <Windows.h> #include <GL\glut.h> #include <GL\glu.h> #include <GL\gl.h> #include <math.h> #include "TGA.h" p.s you where sort of harsh then...i thought i would be safe in beginners but i guess not. Sx
  12. Scarlet Harlot

    quadratic pains

    http://www.gamedev.net/community/forums/topic.asp?topic_id=196071 i found this topic on quadratics...and the person is having exactly the same problem as me but i am not using c# i am jsut using c++ and the code it taken from this site. So here is what i have: variables: GLUquadricObj *quadratic; init: quadratic=gluNewQuadric(); gluQuadricNormals(quadratic, GLU_SMOOTH); gluQuadricTexture(quadratic, GL_TRUE); display: gluCylinder(quadratic,1.0f,0.0f,3.0f,32,32); and so as you can see it it s taken exactly as is from the tutorial, and i will be manipulating it later, once i get it to appear. the problem is alsoexactly like in the privous thread. and as photobucket is down i cant show you the error >_< hope this is enough information if not let me know. i would really appriciate some help =D Scarlet.x
  13. Scarlet Harlot

    I can't take political threads anymore

    i think it may be alcohol, i feel the same way and when i see a political thread that has like 20 replys i read the first post to see what it is about and then leave it. I thought lounge forums where supposed to be light hearted? i just end up getting more stressed with the political situation of the western world, its depressing. oh well not to worry Nx
  14. Scarlet Harlot

    My Introduction

    hi justin, i am new to the forum and i am studying computer games technology in the UK. i have followed thread in this forum for a while now and then decided it would be good to join and build up communication. I think this is a great place to learn. Nicci
  15. Scarlet Harlot

    To GLUT or not to GLUT

    surely for a beginner the speed isnt gonig to be such a big deal for you right now. what is important is jsut getting results from yourself to spur (< how do you spell that?) you on. Nx
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!