Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor MobileVisuals's Avatar
    Join Date
    Feb 2005
    Location
    Kista, Sweden
    Posts
    267
    Floats are not allowed as texture coordinates in M3G. Doesn't this limit how the appearance of the textures can be configured? I mean in OpenGL you can set coordinates like

    texels[46+j] = 0.5f;
    texels[47+j] = 0.33f;

    This determines how detailed the textures look. If you can only set 1 and 0 as the texture coordinates, I assume there is no way to configure how detailed the textures should be?

  2. #2
    Nokia Developer Expert mikpeson's Avatar
    Join Date
    Oct 2008
    Posts
    40
    Check M3G setTexCoords specs and you will notice that you can use scale and bias to scale your integer texture coordinates. This means if you use 16-bit coordinates value 256 could mean 1.0f with proper scale.

    It's similar to OpenGL ES fixed point coordinates.

  3. #3
    Regular Contributor MobileVisuals's Avatar
    Join Date
    Feb 2005
    Location
    Kista, Sweden
    Posts
    267
    Thanks, it worked!

Similar Threads

  1. Application access set to not allowed testing APDUMIDlet
    By ivalladt in forum Mobile Java Tools & SDKs
    Replies: 15
    Last Post: 2012-05-04, 16:21
  2. converting coordinates in pixel -> m3g coordinates
    By Kayron in forum Mobile Java General
    Replies: 0
    Last Post: 2011-02-27, 21:33
  3. Replies: 1
    Last Post: 2010-09-09, 02:43
  4. application access set to not allowed
    By manmeet_narang in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2010-01-12, 11:58
  5. Replies: 2
    Last Post: 2002-09-03, 16:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved