Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 64-bit textures?  (Read 7247 times)

0 Members and 1 Guest are viewing this topic.

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
64-bit textures?
« on: January 05, 2014, 01:22:54 pm »
Hi, I need to create a texture with a 64-bit color depth (or at least 32 bit). Is that possible? If so, how?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: 64-bit textures?
« Reply #1 on: January 05, 2014, 01:36:44 pm »
32 bit is the default. 64 bit is not possible with SFML, you need to use OpenGL directly.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #2 on: January 05, 2014, 01:38:12 pm »
But this is one of the most important features of modern hardware. How can this not be supported ?
(PS: I meant per channel)
« Last Edit: January 05, 2014, 01:39:47 pm by pixartist »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: 64-bit textures?
« Reply #3 on: January 05, 2014, 01:39:48 pm »
But this is one of the most important features of modern hardware.
64 bit textures? I doubt it.

(PS: I meant per channel)
What games exactly need 64 bits to represent a single color? :o
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Daddi

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • http://foxdev.de/
    • Email
Re: 64-bit textures?
« Reply #4 on: January 05, 2014, 01:40:25 pm »
May I ask what you want to achive with that much colors? Are current operating systems even capable of displaying 64bit colors?

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #5 on: January 05, 2014, 01:40:33 pm »
Well, I consider Deferred rendering and HDR pretty important.

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #6 on: January 05, 2014, 01:41:11 pm »
Well, I consider Deferred rendering and HDR pretty important.

I wanna use it for calculating heightmap erosion. Otherwise I'd have to use a double array and manually convert it to a texture every frame...

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #7 on: January 05, 2014, 01:42:56 pm »
But this is one of the most important features of modern hardware.
64 bit textures? I doubt it.

(PS: I meant per channel)
What games exactly need 64 bits to represent a single color? :o
I for once used it to create a Game-Of-Life shader system... Textures are not only used for displaying images anymore. They are a convenient way of carrying 2D-data.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: 64-bit textures?
« Reply #8 on: January 05, 2014, 01:44:02 pm »
Not even OpenGL supports textures with 64 bits per channel (source). Are you sure you're not confusing something?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #9 on: January 05, 2014, 01:45:57 pm »
I'm pretty sure XNA supported 256 bit textures (at LEAST 128 bit though)

Edit: 32bit per channel is max: http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.surfaceformat.aspx

see: Vector4
« Last Edit: January 05, 2014, 01:47:56 pm by pixartist »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: 64-bit textures?
« Reply #10 on: January 05, 2014, 01:47:57 pm »
Are you sure they don't just gather multiple components to one? After all, you won't even find a built-in 128 bit integral type in programming languages.

Anyway, SFML doesn't support it :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #11 on: January 05, 2014, 01:50:03 pm »
Are you sure they don't just gather multiple components to one? After all, you won't even find a built-in 128 bit integral type in programming languages.

Anyway, SFML doesn't support it :)

No, it really works. It's useful for shaders that contain more detailed information. Also it's 128 bits for all channels together. Each channel is a 32 bit float. I don't know the exact technical solution though.

Too bad I can't find any posts on how to change the surface format in sfml manually and if sfml can even work with modified renderTextures.
« Last Edit: January 05, 2014, 01:52:44 pm by pixartist »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: 64-bit textures?
« Reply #12 on: January 05, 2014, 01:53:48 pm »
I know that it works, I have used 32 bit integral textures for a geometric meshing application. But other texture formats are currently not supported by SFML, and I don't think they will be in the near future, since it's a rather advanced feature that only few people require for 2D rendering.

As stated, you should try to use OpenGL directly (or emulate the functionality somehow with smaller texture formats). You can use OpenGL on top of SFML, so you don't need to rewrite everything.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

pixartist

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 64-bit textures?
« Reply #13 on: January 05, 2014, 01:58:25 pm »
Hmm, SFML does not know the GL_RGBA32F enum :(

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: 64-bit textures?
« Reply #14 on: January 05, 2014, 02:01:15 pm »
Yes, as I said "other texture formats are currently not supported by SFML". So, "you should try to use OpenGL directly" ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything