• 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.


  • Content count

  • Joined

  • Last visited

Community Reputation

141 Neutral

About sienaiwun

  • Rank
  1. OpenGL

    Thanks @cgrant and @mhagain for your kindly reply. I knew it might make little sense to measure a shader in this naive way and it was difficult to isolate different stages. But since the actual temporal performances are closely guarded secrets of the chip vendors, that is the only way I can come up with. I took up this idea from ''In-Depth Performance Analyses of DirectX 9 Shading Hardware." from ShaderX3. I knew this kind of measurement is old-fashioned, but is there some better ideas to give a coarse value to the artists that how fine is the geometry and how fine is the geometry and how much is the max chararacters a mobile device can support? There are several 3-rd party measurement tools like  GPU ShaderAnalyze from AMD or ShaderPerf2 from NV. But they are not friendly to mobile Gpus.
  2. OpenGL

    Thanks @Columbo for your reply. I do my Fshader test with alpha blending on, although it may involve unnecessary blending operation after Fshader.
  3. OpenGL

    Thanks @Columbo for your reply.   With my fragment shader test, I do it with depth write off and depth test off. I think it is similar way to get a massive amout of overdraw like transparent rendering.   With your vertex shader way, can I do it by projecting the vertexes to a given fixed tiny point so that they are not rasterized?   I also need to measure the cost of varying parameters between VShader and FShader and whether the bandwidth is the bottleneck as well. Is there some idea? 
  4. OpenGL

    I got the answer. GEM2 "nv_dds.cpp" and "nv_dds.h" could do the job.
  5. Like http://www.gamedev.net/topic/588982-3d-noise-texture/ I have a dds file, a 3d noise volume, 128 slices. But I donot know how to bind a texture 3d.  For googled information, the most common one used is that dds file is a compresed 2d image . and then bind a GL_TEXTURE_2D texture.  like http://stackoverflow.com/questions/1715027/dds-dxt1-loading-in-opengl-crashes I don't want this answer. Can anyone give me a hand?
  6.  Hi:    I want to convert a .sdkmesh file to other mesh file like .obj file .x file or 3ds file. However, I cannot find a way.     The meshConverter.exe in direct sdk can only load .x file and convert .x file to sdkmesh file, althought it says it can read sdkmessh file. I have read the source code of that example. The loader there can only read .x file. So meshConverter.exe is not a solution.    Can anybody give a hand?     Thanks in advance.
  7. You mean  float depth =tex2D(depthMap, projCoord.xy).r; is enought to get the depth number? Acctually I fetch the R,G,B  channels value of that texture. Each value is different, but Each value is continuous on an scene object. 
  8. The scene renders well and the color buffer is reasonable, no depth wrong things like occluded object appearing happens. I use that as a naive understanding of GL_DEPTH_COMPONENT24 format. I took it as : depth = (r<<16+g<<8+b), which is wrong.  And I wonder how to fetch a 24-bits internal format texture. I  use GL_DEPTH_COMPONENT internal format as well (I think it means 8-bits internal-format, is it right), and it does not still work.The depth image looks the same as GL_DEPTH_COMPONENT24 
  9. Hi, I want to get depth value from the depth texture and the depth texture is init as this: ------------------------------------------------------------ glGenTextures(1,&pass2_depthImage); glBindTexture(GL_TEXTURE_2D, depthImage); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, 1024, 1024, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL); ------------------------------------------------------------ I wonder how to get the depth value fom this image in a shader, I use this:    float3 sampleZ = tex2D(depthMap, projCoord.xy).xyz;    float3  bitShifts = float3(1.0/(256.0*256.0), 1.0/256.0, 1);     float depth = dot(sampleZ,bitShifts); in the idea that the 24bit depth value is in 24 scale. However, it does not work, as it may use a 24 bit float value or something.   I also wonder as I init the texture as this: glGenTextures(1,&pass2_depthImage); glBindTexture(GL_TEXTURE_2D, depthImage); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, 1024, 1024, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL);   I get the depth as this:    float depth =tex2D(depthMap, projCoord.xy).x; It still not works. And every RGB channel values is as the same as I init the depth texture map internal format as GL_DEPTH_COMPONENT24.   The depth image rendering: glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_TEXTURE_2D, pass2_depthImage, 0);      
  10.     Thanks very much. As the area is computed without D3D or OPENGL, I must write my own rasterizer.     I wonder if the triangles can be paremeterized into a vector, like spherical harmonics way. And the vector can by projected on a plane. Is there some ways.     Sincere.
  11. Hi.   I want to compute several triangle models' projective area on the view plane. My current method is that I write a soft-ware rasterizer and do the rectangle culling of triangle pixels out of the view rectangle and then computer the area.  As there is no hard-ware culling, it's time consuming. I wonder is there any idea of another way of triangle culling.  For example, can the triangles be parameterized into a vector, and do a 2D vector culling? Is there any paper about it?  Or as the area could be coarse, is there any better parameter way? Sincere.
  12. [quote name='m41q' timestamp='1350146919' post='4989816'] Do I understand it right that you want to have 300-700 different point of views? If so, it is pretty obvious the computer has very much to do... [/quote] I use it to render different textures. all cameras are in different place, looking at different views.