Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: uwi2k2

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. hi, well there is not really the ONE format...

    hi,

    well there is not really the ONE format you should use ...
    Of course there are a lot of libs, but its always a good idea to think about :"what mesh data do i need ? "
    As there are so many...
  2. hi, without looking deeper it may be that the...

    hi,

    without looking deeper it may be that the normals of your 3d model are wrong.
    open it in a 3d program and check it.

    regards
    uwi2k2
  3. Replies
    4
    Views
    290

    hi, you are using the so called: fixed...

    hi,

    you are using the so called: fixed function pipeline , from opengl .. lets say the OLD WAY :-)

    So you dont need shaders and dont need to manage matrix on your own ...

    thats the best /...
  4. Replies
    3
    Views
    315

    hi, yes of course you can. e.g. You draw the...

    hi,

    yes of course you can.
    e.g. You draw the cube to a texture in you own FBO ( Frame Buffer Object ).
    Or you draw dont redraw the szene till a chenge happend.
    So in you render loop like:
    if(...
  5. hi, to check for glErrors is always a good...

    hi,

    to check for glErrors is always a good pratice to find the lines that cause your trouble !
    but you may try to change the clear color ans see if it has affect ...
    this is at least a hint that...
  6. Replies
    4
    Views
    256

    hi, ok - got it.. than you should try:...

    hi,

    ok - got it..
    than you should try: glCullFace() and hide backfaces ... it this works fine .. than the order of the triangles it really the problem ...
    than you need some complex logic to...
  7. Replies
    2
    Views
    563

    hi, well yes you can do that in opengl ... but...

    hi,

    well yes you can do that in opengl ... but first of all need to know what OS you are on ...
    in android or ios it will be opengl ES 2.0 or 3.0

    cu
    uwi2k2
  8. Replies
    3
    Views
    309

    hi, basicly you can do things like this with a...

    hi,

    basicly you can do things like this with a simple vertex shader that is using the 2d image ( grayscale ) as a displacement map for a mesh.
    So, the lighter the pixel on the 2d img is , the...
  9. Replies
    4
    Views
    256

    hi, it looks like both objets are in exacly...

    hi,

    it looks like both objets are in exacly same place ..
    that would lead to so calld "z-fighting".
    Just keep in mind that a transpernt pixel still writes some depth information ...
    Blending...
  10. hi, thats really simple. you create and...

    hi,

    thats really simple.
    you create and compile 2 pairs of shaders. so you have 2 programmobjects.

    than you use the first programm ( shader pair )
    gluseprogramm( progOne )
    than you draw...
  11. Replies
    1
    Views
    297

    hi, the basics are still the same ... - you...

    hi,

    the basics are still the same ...
    - you create a texture
    - you fill it with your texture data
    - you bind it ..
    now 2 new thinks come along:
    - you create a "sampler2d" variable in your...
  12. Replies
    3
    Views
    462

    hi, i am pretty sure that you are reading to...

    hi,

    i am pretty sure that you are reading to few channels ...
    baybe you final render img is in RGBA .. but you are only copying data to RGB .. that means all gets messd up by 1 byte .. or you are...
  13. Replies
    1
    Views
    328

    hi, did you solved it allready ... otherwise...

    hi,

    did you solved it allready ... otherwise lezs just take a look together on skype or teamviewer ..
    skype: uwi2k2 .. i guess we can solve this.

    cu
    uwi2k2
  14. hi, i do not understand what your problem...

    hi,

    i do not understand what your problem is...
    can you explain a bit better ...

    cu
    uwi2k2
  15. hi, the code so far looks fine ... can you...

    hi,

    the code so far looks fine ...
    can you upload all your code so i could test it ... there must be a other logic bug in it.

    regards
    uwi2k2
  16. Replies
    2
    Views
    296

    hi, basicly what you are doing MAY be right .....

    hi,

    basicly what you are doing MAY be right .. but a lot of code is needed additionally to this to really use a texture..
    can you show your code ?
    does your model has Texture coordinates ?
    ...
  17. hi, you need to calculate the projection...

    hi,

    you need to calculate the projection matrix for the depth map onto the normal szene.
    m_depthMVP << this is not enough.

    cu
    kai
  18. Replies
    11
    Views
    859

    hi, if you set glFrontFace to CW and cull...

    hi,

    if you set glFrontFace to CW
    and cull BACK you normaly see the inside of something ... assuming your data is normal vertex order ..

    cu
    kai
  19. Replies
    0
    Views
    257

    Problem with tangent calculation

    hi there,

    i am struggeling with a problem in my webgl project.

    i calculated tangent for normal mapping in this function:




    function calculateTangents( vs, tc, ind )
  20. Replies
    0
    Views
    356

    Keep all Objects in Engine in one Array

    hi there,


    i just play around with thoughts about render engine structure.
    i know there are many out there but i wanne just learn by practice.


    i have a complete setup of renderengine,...
  21. Replies
    1
    Views
    615

    hi, you need to give a few more infos. what...

    hi,

    you need to give a few more infos.
    what does thecode do ?
    what do you mean by slow ? 30 FPS ?

    regards
    uwi2k2
  22. Replies
    1
    Views
    626

    Strange alpha Problem in simple scene

    Hi all,

    i am a bit ashamed that i cant solve this problem myself, mostly as i am a opengl trainer, but
    i have learnd you can only get better when you are not afraid to ask !

    so ... i am...
  23. Replies
    2
    Views
    784

    hi, the answer ist mostly yesss .. but the...

    hi,

    the answer ist mostly yesss ..
    but the pointer may take every structure you define.
    so it CAN be that structure .. but does not need to be.

    cu
    uwi
  24. Replies
    2
    Views
    1,693

    hi, when you create the texture you bind ...

    hi,

    when you create the texture you bind

    glBindTexture(GL_TEXTURE_2D, TextureIndex[0]);
    but everytime you draw you just bind:

    glBindTexture(GL_TEXTURE_2D,texIndex);
    as you are passing...
  25. Replies
    4
    Views
    1,414

    math math math

    hi there,

    this is a math issue... called z-fighting ....
    first you may try to set:

    GLU.gluPerspective(45, (float)width / height, 0, 20); // 1000 is a quite big sene...
    the bigger the scene...
Results 1 to 25 of 117
Page 1 of 5 1 2 3 4