Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 25 Oct 2010
Offline Last Active Sep 25 2014 11:11 PM

Topics I've Started

FBX - UV usable range?

20 September 2014 - 04:23 AM

Hi All


I've a problem with FBX textures import. For example a minimun U(V) coordinate is  -0.04 and a maximim one is 0.96.  But what U(V) range is really used for mapping? Variants


[0..1] (most probably)


[-0.04..0.96] (it's unlikely)


Same question can be re-formulated as: what position in UV space does correspond to image center? (0.5, 0.5) or (0, 0) or (0.48, 0.48)? The texture translation is (0, 0), can't help





Wireframe Overlay - glPolygonOffset

07 August 2014 - 04:02 AM

Hi All


I need to draw wireframe over solid object. As I've understood from google, glPolygonOffset is a standard solution for this - but I can't get it to work. With first argument negative it has effect - wireframe disappears. But my wireframe still "blinks" with any view change, no matter what values are passed to glPolygonOffset. I've also tried different draw order and wireframe drawn as lines - no luck. What am I doing wrong?





Picking a set of vertices

02 August 2014 - 06:22 AM

Hi All


I'm looking for standard/convenient solution for picking a set of vertices (see attach). Questions:


- is glFeedbackBuffer a way to go?

- if so how can I detect vertex indices and (more important) vertex visibility (e.g. it's overlapped by polygon(s)). Solutions based on culling/normals aren't perfect, for example no vertices could be selected on plane turned back. In other hand it looks too expensive to write a raytracer for this task.






Attached File  Vertices.png   52.47KB   8 downloads

Blocked SwapBuffers

06 February 2014 - 07:17 AM

Hi All

In some cases aglSwapBuffers doesn't update screen. However when mouse pressed in window, it's updated without any re-render.
No luck with caatch update moment/call in debugger. For example if stop on breakpoint - screen is already updated, but if go step by step - not updated yet. In past a bit similar prob was solved with set AGL_SWAP_INTERVAL = 1, but now it has no effect.

I realize agl framework is totally obsolete but we need a refactoring to get rid of it, that is what I'm doing now.

Any idea?




Just Hilite cell with Quartz

27 January 2014 - 12:01 PM

Hi All,
I'm porting old app and replacing old QuickDraw drawing with Quartz one. There are a lot of "hilites" in old code that typically replaces background color with selection color inside cell/rectangle. How to make same with Quartz?
What I tried is:
1) Use cache CGBitmapContextRef. It works but now app took ~300Mb of RAM (vs 50 before). From what I read I've figured out - it's conceptual mistake, triple-buffer.
2) Ok, so I've switched to Quatz "blend modes". There are a lot of them, but no one does what I need. If I change background, so text's and other colors are changed too.
I can't find a way to replace a color selectively.
Any suggestion is very appreciated.