Skip to content

Graphics

DirectX, OpenGL and GDI/GDI+ discussions

This category can be followed from the open social web via the handle graphics@forum.codeproject.com

769 Topics 2.5k Posts
  • Zooming the line in OpenGL

    csharp graphics game-dev help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Image Warp Function needed.

    help
    3
    0 Votes
    3 Posts
    3 Views
    S
    I tried GDI+ DrawImage but it will always fit image in parallelogram where is in my case it always need not be parallelogram.
  • Anti-Aliasing routine needed

    graphics com help tutorial
    7
    0 Votes
    7 Posts
    2 Views
    F
    Force Code wrote: I copied this into a test program, compiled it, and it did nothing. So, I replaced their "render_text(ras, ren, sl, gl, 10, 100, "Hello, World!")" with a straight win32 TextOut, and got impeccably rendered "Hello World" output indistinguishable from what AGG supposedly produces. But then, I noticed in their code they were calling the Win32 CreateFont with ANTIALIASED_QUALITY specified. So, I have no idea what AGG achieves on its own. As it turns out, ANTIALIASED_QUALITY was all I needed in my own project to begin with. I was utilizing someone else's code in which CreateFont was called with DEFAULT_QUALITY. Here's an interesting epilogue to this story. I recently downloaded GDI+ which I haven't used before. As I said above, just using the straight GDI CreateFont (or actually CreateFontIndirect) and specifying ANTIALIASED_QUALITY, gives you as good text quality for large fonts as could possibly be imagined. So I was curious about the capabilities of GDI+. With it, you call, graphics.SetTextRenderingHint(TextRenderingHintAntiAliasGridFit), which gives you the highest quality fonts available through GDI+ for non XP systems (I am using Win 2000.) So I tried it and amazingly, the quality was *much* worse than with straight GDI. It looked like it wasn't anti-aliased at all, until you notice that yeah, it is a *little* bit smoother (This was on 72 point Times New Roman; bold, italic). This is very strange, since GDI+ itself uses over 180 GDI functions. There is one higher quality font level available in GDI+, only for XP and Win Server 2003 - TextRenderingHintClearTypeGridFit. It supposedly uses revolutionary "ClearType" technology. I think its clear that what happened is that Microsoft just downgraded font rendering for everything prior to XP, and made their old anti-aliasing algorithm only available for XP or higher, and gave it a new name - "ClearType". Maybe this has been observed before.
  • Intelligent Connectors

    question c++ help
    3
    0 Votes
    3 Posts
    4 Views
    W
    How....can u explain a bit more.. Regards
  • Intelligent Connectors

    question c++ help
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    1 Posts
    2 Views
    No one has replied
  • Inner and Outer Bevel Effects.

    c++ winforms graphics
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Frozen screen after activation of Win screensaver

    help css tutorial question
    10
    0 Votes
    10 Posts
    7 Views
    S
    Hi Mark, unfortunately, I've to leave immediately for a business trip until June, 22nd (I'm somewhat in a hurry to get the plane...). I'm going to try later what happens when dragging another window across the loop's form. So far thanks for your efforts, I get in touch with you as soon as I'm back. All the best Wolfgang
  • 0 Votes
    4 Posts
    3 Views
    G
    Thanks to VizCoder providing confirmation that ArrayList's are indeed any type I looked at my orriginal attempt again. All I needed to do was change the DrawImage method to.. public void DrawImage(int Image, int x, int y) { ssurf.DrawFast(0,0,(Surface)al[Image-1],ImageRect,DrawFastFlags.DoNotWait); } Because the ArrayList object can be of any type I had to cast it as type surface when using it (Surface)al[Image-1]
  • Warehouse Visualization

    graphics performance game-dev sales help
    2
    0 Votes
    2 Posts
    4 Views
    C
    DirectX is the most obvious, seeing as you want to use LINQ, which means managed code. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • 8 bit bmp

    graphics tutorial
    9
    0 Votes
    9 Posts
    5 Views
    H
    Thank u so much... Born To Code
  • how to convert template in to web page?

    adobe help tutorial question
    2
    0 Votes
    2 Posts
    3 Views
    C
    You have to cut it up into pieces and then put those pieces into a web site through img controls, and do as much as you can using CSS instead Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
  • vertices and bones

    question c++ graphics game-dev docker
    2
    0 Votes
    2 Posts
    2 Views
    E
    zqueezy wrote: I'm using OpenGL and C++, of course http://home.gna.org/cal3d/[^] http://download.gna.org/cal3d/documentation/modeling/tutorial.html[^] not sure if you are wanting to do it all yourself, of find a library that does it for you (and then you are restricted to its bone design). At the very least you can peek at the code and see how they do the binding. :) _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
  • 3d view of DTED using OpenGL

    game-dev com graphics help tutorial
    2
    0 Votes
    2 Posts
    3 Views
    E
    dgpdgp wrote: I am writing a game and planning to use DTED files for terrain generation.There is an example(http://www.geocities.com/oldjajubear/dtedview.zip) for viewing in 2D. I just need the help of this forum in using DTED+OpenGL to modify this code to disaply DTED in 3D. OpenSceneGraph directly supports the building and drawing of terrain using DTED: http://www.openscenegraph.com/index.php[^] or http://www.delta3d.org/[^] (based on OSG) you can also use many algorithms at Vterrain.org (including the site's owner's code): http://www.vterrain.org/LOD/[^] http://www.vterrain.org/Request/index.html[^] (virtual terrain project's code) Ben is a good guy too. http://www.vterrain.org/index.html[^] (the root page for information in many terrain related visualization issues). _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
  • How to use OnPaint() ??? :(

    graphics help question com tutorial
    2
    0 Votes
    2 Posts
    3 Views
    M
    You need to store any information you need to redraw all the lines when you receive the WM_PAINT notification. For a DC to do the drawing to, you can use the BeginPaint/EndPaint APIs or get a DC for the window and handle the validating of the update region of the window yourself. What language are you coding in? Mark "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
  • Video encoder suggestion

    css question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Virtual camera recommendation

    tools question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Problem extracting full palette from 8bit image

    com graphics tools help question
    14
    0 Votes
    14 Posts
    4 Views
    M
    Cool! I had no idea using the properties in the loop would be that slow! Good to know! :) Mark "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder