5
голосов
2ответов
1055 просмотров

WPF Architecture and Direct3D graphics acceleration

After reading the wikipedia article on WPF architecture, I am a bit confused with the benefits that WPF will offer me. (wikipedia is not a good research reference, but i found it useful). I have some questions 1) WPF uses d3d surfaces to render. However, the scenegraph is rendered into the d3d s...

2
голосов
1ответов
84 просмотров

What are the graphics editors that can be built upon?

I want to start off with a capable vector graphics drawing/editing program and extend it to create a visual designer for a project I'm working on. Do you know of a graphics editor that can be built upon? Maybe open source? Users should already be able to freely draw and color graphics, and any ...

2
голосов
3ответов
2570 просмотров

Which algorithm does Neatimage use to denoise images?

Which kind of algorithm does Neatimage use to remove noise and grain from photos? I understand that this is proprietary software, but probably someone has an idea. References to publications or to similar algorithms are welcome.

5
голосов
4ответов
536 просмотров

Should I go 3D for my game? If so, how far and any good tutorials?

I have been working on a java simulation game for some time (remaking theme hospital in my own way). Up to now, I have done everything in 2d, using squares and circles etc. I have looked for some tutorials on how to do 3d in java, found coke and code, however I am unsure if this is what i need to...

0
голосов
1ответов
176 просмотров

Icons to use in a program generating feeds for Google Search Appliance

We're developing a program that generates search feeds for Google Search Appliance. We would like to use icons that would be associated with Google Search Appliance in the program interface. Is there a list of icons Google officially allows to use in such cases?

3
голосов
5ответов
2212 просмотров

Simple way to implement computer-go board in Java

I want to make a simple Go board to design an Computer Go game. In a go game, you lie a "stone" (white or black) on a position where horizontal and vertical lines intersect. What are some simple ways to restrict users from placing their stones in other locations? Maybe I'm just not seeing a s...

5
голосов
2ответов
6445 просмотров

How to get camera up vector from roll, pitch, and yaw?

I need to get an up vector for a camera (to get the right look) from a roll, pitch, and yaw angles (in degrees). I've been trying different things for a couple hours and have had no luck :(. Any help here would be appreciated!

4
голосов
4ответов
3338 просмотров

Any code/library to scale down an UIImage?

Is there any code or library out there that can help me scale down an image? If you take a picture with the iPhone, it is something like 2000x1000 pixels which is not very network friendly. I want to scale it down to say 480x320. Any hints?

0
голосов
6ответов
2384 просмотров

C# OnPaint mousemove high cpu usage

I have written a custom control that renders some graphics. The graphics itself is fairly expensive to render but once rendered it rarely changes. The problem I have is that if you move the mouse really fast over the graphics surface it keeps calling the control's overridden Paint method which th...

0
голосов
1ответов
2034 просмотров

Rendering different triangle types and triangle fans using vertex buffer objects? (OpenGL)

About half of my meshes are using triangles, another half using triangle fans. I'd like to offload these into a vertex buffer object but I'm not quite sure how to do this. The triangle fans all have a different number of vertices... for example, one might have 5 and another 7. VBO's are fairl...

3
голосов
5ответов
465 просмотров

How do I contract out the design of an ASP.NET MVC Application?

As many of you know MVC applications will have one or more of these View elements. Partial Controls Views Strongly Typed Views And probably others that I don't know yet. As many developers, I am one of those that has no art for design, I can't think about colors, just about logic. I will li...

40
голосов
7ответов
49291 просмотров

Fast work with Bitmaps in C#

I need to access each pixel of a Bitmap, work with them, then save them to a Bitmap. Using Bitmap.GetPixel() and Bitmap.SetPixel(), my program runs slowly. How can I quickly convert Bitmap to byte[] and back? I need a byte[] with length = (4 * width * height), containing RGBA data of each pixel.

1
голосов
2ответов
2716 просмотров

2D Triangle in SlimDX

How to draw a triangle using SlimDX's Direct2D interface given triangle vertices are given in pixel coordinates?

1
голосов
2ответов
917 просмотров

Is it possible to translate twice in one OpenGL Matrix?

This is a homework question I am sorry but I am lost. What happens is the following I am asked to do a tiling of hexagons. Like the grid map in many Risk games and Wild Arms XF. I understand the current transformation is the matrix that translates the points I give to OpenGL to screen coordinates...

3
голосов
2ответов
12266 просмотров

Rendering vector shapes in Java

I have a series of shapes (Approx. 50), that each have 5 points, and a color (with alpha transparency). I want to render these shapes onto a pixel grid. I program as an amateur, so I have no idea how I should go about doing this. Can someone give me a starting point, or some pseudo-code? Thank...

17
голосов
4ответов
38954 просмотров

Convert Quaternion rotation to rotation matrix?

Basically, given a quaterion (qx, qy, qz, qw)... How can i convert that to an OpenGL rotation matrix? I'm also interested in which matrix row is "Up", "Right", "Forward" etc... I have a camera rotation in quaternion that I need in vectors...

2
голосов
2ответов
534 просмотров

How do I create a floor for a game?

I'm attempting to build a Lunar Lander style game on the iPhone. I've got Cocos2D and I'm going to use Box2D. I'm wondering what the best way is to build the floor for the game. I need to be able to create both the visual aspect of the floor and the data for the physics engine. Oh, did I mention...

12
голосов
2ответов
12272 просмотров

Finding the overlapping area of two rectangles (in C#)

Edit: Simple code I used to solve the problem in case anyone is interested (thanks to Fredrik): int windowOverlap(Rectangle rect1, Rectangle rect2) { if (rect1.IntersectsWith(rect2)) { Rectangle overlap = Rectangle.Intersect(rect1, rect2); if (ove...

5
голосов
2ответов
4202 просмотров

How to erase an area in a BitmapData object?

Flex 3, ActionScript 3, Flash player 9. I have a picture in a BitmapData object. And an array of points. I nead to erase the part of the picture inside a polygon specified by the points. In other words, draw a polygon specified by the points and fill it with transparency. Any ideas on how it ca...

4
голосов
6ответов
1772 просмотров

Debugging image rendering in Visual C++, any helpful add-ins?

I often write code that renders images by writing pixels directly into buffers and I often find it hard to get a good overview of what's really going on. The Memory window in Visual Studio's debugger is somewhat a help, but I'd really love to see the images graphically. So my question is, does a...

0
голосов
2ответов
2160 просмотров

multi layer screen like photoshop in .Net

I want to write a utility that it works like Adobe Photoshop. if you work with this product, you meet a capability that we able to create a new layer and modify it easily. now i should write a code that draw a shape in run-time and insert several other shape with own Right-Click options. I don't...

2
голосов
2ответов
859 просмотров

OpenGL glGetTexImage2d type parameter?

reading the docs i see that the glGetTexImage2d() function has a 'type' parameter. The docs say that the type parameter "specifies the data type of the pixel data" and gives some examples of types such as GL_INT, GL_BYTE, etc. but what does it mean precisely when the image format is GL_RGBA and ...

14
голосов
4ответов
7541 просмотров

ASCII "graphics" library?

Is there a platform-independent C/C++ library that can draw simple "graphics" in pure ASCII in a console program? For example (VERY roughly) I could call a function in the library like rectangle(3, 6); to get the following output: ****** * * ****** Ultimately, I would love to be able to plo...

0
голосов
1ответов
4357 просмотров

Problem with actionscript 3 erasing drawing

I have a based image and some sprites on top of the basd image movieclip... Some of the sprites can be drawn by the user using graphics api in actionscript 3. I can draw things on the sprites but I can't create an eraser like brush that can remove part of the unwanted drawings. I try using Alpha...

3
голосов
3ответов
6792 просмотров

JOGL Double Buffering

What is eligible way to implement double buffering in JOGL (Java OpenGL)? I am trying to do that by the following code: ... /** Creating canvas. */ GLCapabilities capabilities = new GLCapabilities(); capabilities.setDoubleBuffered(true); GLCanvas canvas = new GLCanvas(capabilities); ... ...

60
голосов
7ответов
111696 просмотров

Android: How to overlay a bitmap and draw over a bitmap?

I have three questions actually: Is it better to draw an image on a bitmap or create a bitmap as resource and then draw it over a bitmap? Performance wise, which one is better? If I want to draw something transparent over a bitmap, how would I go about doing it? If I want to overlay one transpa...

2
голосов
4ответов
1213 просмотров

How do I do a iPhone button-like fill

I'd like to spruce up some of the user controls I use and thought some attractive fills should do the job (part of it perhaps). Like the fill in the background of iPhone buttons or the Office 2007 ribbon bar (perhaps you know a few more). Edit: To clear things up, I don't need a simple gradient ...

0
голосов
1ответов
2686 просмотров

Writing Name Using Bezier Curves In C#

I have to make a program that uses C# Generated Graphics to make a replica of my name that I wrote in cursive. Twist is, I have to use Bezier Curves. I've already called a function to make Bezier Curves using 4 points and a gravity concept. My question to you is, What would be the easiest way to ...

1
голосов
6ответов
564 просмотров

What is the best tool to allow web users to create flowcharts/diagrams?

I'm creating a web application in which teachers need to be able to easily create educational diagrams, flowcharts, basically: boxes and circles with text in them text labels ability to upload and embed graphics easy to make lines with arrows, etc. lots of ready-made icons and clipart would be ...

19
голосов
3ответов
65805 просмотров

Convert graphics object to bitmap object

How can I convert graphics object to bitmap object using C#?