English 中文(简体)
开放式GL pixel 精确分类
原标题:OpenGL pixel precise rasterizing on different archs

申请I m 发展中I 必须能够

  • draw lines of different widths and colours
  • draw solid color filled triangles
  • draw textured (no alpha) quads

非常容易......但......

All coordinates are integer in pixel space and, very important: glReading all the pixels from the framebuffer on two different machines, with two different graphic cards, running two different OS (Linux and freebsd), must result in exactly the same sequence of bits (given an appropriate constant format conversion).

I think this is impossible to safely be achieved using opengl and hardware acceleration, since I bet different graphic cards (from different vendors) may implement different algorithms for rasterization. (OpenGl specs are clear about this, since they propose an algorithm but they also state that implementations may differ under certain circumstances). Also I don t really need hardware acceleration since I will be rendering very low speed and simple graphics.

Do you think I can achieve this by just disabling hardware acceleration? What happens in that case under linux, will I default on MESA software rasterizer? And in that case, can I be sure it will always work or I am missing something?

问题回答

你们重新阅读已经成像,在很大程度上取决于他们的数学精确性/可再生性,如设计缺陷。 这一行动的目的是什么? 例如,如果你需要从图像中提取一些信息,那么为什么在提供这种信息之前,你不会试图从抽象的病媒信息中提取这些信息?

不管怎样,如果你依赖外部的成文法,并且没有办法使你的读书更加有力,以弥补小差错,你就重新签署了许多痛苦和维护工作。 其他人可以把你的法典与每部小小小小patch相破,因为直到轨道级的这种钢 exact通常在重新进行单位测试时是非问题。 单单是尽可能的硬层和软件层的无限变动,所有这些都可能对混凝土轨道产生影响。

如果你只需要这两个操作体:线(有不同的宽度和颜色)和碎块(有/没有文字),我建议写你自己的成物/消化器法,代号为代表图象的8个轨道阵列(R8G8B8)。 你再次提议的行动太新了,因此,如果业绩不重要,这实际上可能是长期前进的更好途径。





相关问题
OpenGL 3D Selection

I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it ...

CVDisplayLink instead of NSTimer

I have started to implement cvDisplayLink to drive the render loop instead of nstimer, as detailed in this technical note https://developer.apple.com/library/archive/qa/qa1385/_index.html Is it ...

Can the iPhone simulator handle PVR textures?

I have a really weird problem with PVR textures on the iPhone simulator- the framerate falls through the floor on the iPhone simulator, but on the iPhone itself it works just fine. Has anyone had any ...

Calculate fps (frames per second) for iphone app

I am using an opengl es iphone application. What is the most accurate way to calculate the frames per second of my application for performance tuning?

Java - Zoom / 3D Data Visualization Libraries

What are the best libraries/frameworks for doing 3D and/or Zoom interfaces in Java? I d like to be able to do some prototyping of creating new types of interfaces for navigating within data and ...

FLTK in Cygwin using Eclipse (Linking errors)

I have this assignment due that requires the usage of FLTK. The code is given to us and it should compile straight off of the bat, but I am having linking errors and do not know which other libraries ...

热门标签