Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [surface]

The tag has no usage guidance.

0
votes
0answers
24 views

Surfaces in Game Maker 8.0 - Not switching properly

I'm trying to use a dynamic texture to draw a 3D model that changes its texture as different effects are applied to it. It's kind of a dynamic terrain where different types of tiles change. Anyway the ...
0
votes
0answers
70 views

Performance issue for simple pong game in pygame

I have made a simple pong game in pygame, where enemies and items fall down. However, even though it runs at 60fps, it stutters really often which leads to the game being annoying to play. I have ...
-1
votes
2answers
39 views

Unity C# combining two areas each represented by a vector [closed]

have two areas, which are both given in there bounds.size. Now the z-axis doesnt matter for me, since im working in 2D. I want to add these vectors so i have a vector, which represents the jointed ...
0
votes
0answers
114 views

surface.Bake(); no such command

(re: https://www.youtube.com/watch?v=n-RXnDGE72M∈dex=12&list=PL4AZfZ_v6LZNn6LPUbYFyKJNlssdzlu9K at 13 mins 50 secs) When I try: surface = GetComponent (); surface.Bake(); I am getting an error ...
14
votes
1answer
1k views

How to support Surface pens in Unity?

Our game works great with touch or mouse, but the Surface pen doesn't seem to register as a pointing device at all. How can we support the pen in Unity in a native build? This question on the Unity ...
0
votes
1answer
307 views

Too slow for cycle in Pygame

I'm using Pygame for Python 2 and I have the following code: ...
0
votes
1answer
55 views

Intersection of two limited planes (stripes)

Have two limited planes. That means just squares or stripe in 3D space (or two connected triangles on the same plane). What i want to know is exactly how (and whether) they collide. My first approach ...
0
votes
2answers
35 views

How to work out the height of a point on a tilted surface?

I have a plane which gets tilted on the X and Z axis (y+ is the normal). Given an X and Z coordinate and the X and Z rotation of the plane, how do I find out the height (Y) at that point? I assume ...
1
vote
1answer
541 views

What is Surface.set_colorkey() in Pygame

In pygame, what does Surface.set_colorkey() do? Explain it in a very easy way please. Also, what exactly does it do? I heard it makes parts that are the same color as the colorkey transparent, but ...
1
vote
1answer
97 views

D3DXLoadSurfaceFromResource failed to load bitmap image

I'm working on a small DX9 game project for learning purpose. I'm current dealing with resources manager file (*.rc) which i'm not used to (Because I have only worked with direct file until now). If I ...
0
votes
2answers
713 views

How to copy FrontBuffer to BackBuffer in DirectX11

I want to render the surface base on the the last surface. So I try to copy FrontBuffer to BackBuffer, but not work: ...
0
votes
2answers
3k views

Put layout over Surfaceview

I have this problem: I'm trying to create new RelativeLayout over whole screen - which also contains SurfaceView in the middle - ...
1
vote
1answer
862 views

Creating SurfaceView cause short screen blink

When I create SurfaceView for first time since app launch, the app screen blinks black for small time (about 1/4 second). It blinks over UI, so its really visible and doesn't look nice at all. I've ...
3
votes
1answer
258 views

How to find a point on a plane?

I'm using unreal engine 4. Currently I ray trace to a surface in game and I'm trying to find the location of the point relative to the surface1 instead of the world. I have the world position of the ...
0
votes
2answers
2k views

How can I make a trail renderer flat with the normal of the nearest face?

I'm making a basic skid system for a car model using a trail renderer. I have everything setup and working properly except that the trail renderer always faces the camera. I want the trails to be ...
2
votes
1answer
154 views

How to implement angled surface?

I'm trying to implement 2D platformer game inspired by N game. But the problem is I have no idea how to implement something like this: and I have two ideas of how this could be implemented, but I ...
0
votes
2answers
2k views

Array of 3d points, construct point cloud or surface (OpenGL)

I have an array of 3 dimensional point objects, I can manipulate the input into this array into any configuration I want, for example, it could be a vector of floating point numbers, a vector of ints, ...
3
votes
1answer
338 views

How to make a map surface object

I'm making a 2d tile based game. In pygame I could create a map like this: ...
2
votes
2answers
2k views

Relative cam movement and momentum on arbitrary surface

I have been working on a game for quite long, think sonic classic physics in 3D or tony hawk psx, with unity3D. However I'm stuck at the most fundamental aspect of movement. The requirement is that I ...
4
votes
2answers
5k views

Where and how to smooth a voxel-based terrain surface?

I want to smooth the blocky terrain in a Minecraft-like world. The smoothing affects visual appearance and physics but not the logic of placing and picking blocks. I have my mathematical formula to ...