game-engine

3D Engine for Driving Simulation [closed]

瘦欲@ 提交于 2019-12-20 21:44:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Is there any open-source 3D graphics and physics engine specialized in driving simulation? Something like a configurable game engine targeted at games that involve driving, or something more specialized to urban traffic conditions and that would implement scriptable traffic rules. Also, car motor parts and

Weird Exception when Livewallpaper is set in Android

余生长醉 提交于 2019-12-18 09:01:19
问题 04-24 13:30:59.312: VERBOSE/RenderScript(6044): RS Thread exited 04-24 13:30:59.320: ERROR/libEGL(6044): call to OpenGL ES API with no current context (logged once per thread) 04-24 13:30:59.335: WARN/WallpaperService(6044): Ignoring updateSurface: destroyed 04-24 13:30:59.335: WARN/WindowManager(108): Window android.view.IWindow$Stub$Proxy@408968d0 is already added 04-24 13:30:59.355: DEBUG/dalvikvm(6083): GC_EXTERNAL_ALLOC freed 23K, 52% free 2598K/5379K, external 1625K/2137K, paused 55ms

Why do I get bad performance with SDL2 and SDL_RenderCopy inside a double for loop over all pixels?

。_饼干妹妹 提交于 2019-12-18 06:49:57
问题 I am programming a raycasting game using SDL2. When drawing the floor, I need to call SDL_RenderCopy pixelwise. This leads to a bottleneck which drops the framerate below 10 fps. I am looking for performance boosts but can't seem to find some. Here's a rough overview of the performance drop: int main() { while(true) { for(x=0; x<800; x++) { for(y=0; y<600; y++) { SDL_Rect src = { 0, 0, 1, 1 }; SDL_Rect dst = { x, y, 1, 1 }; SDL_RenderCopy(ren, tx, &src, &dst); // this drops the framerate

Avoid ground collision with Bullet

给你一囗甜甜゛ 提交于 2019-12-17 22:37:44
问题 I'm trying to use Bullet physic engine to create a 3D world. I've got my character with a Capsule shape on his body and my ground his made of some static blocs stick together, here is a schema to illustrate my words: The problem is present when my character run from one block to another: Bullet detect a collision and my character start to jump a little bit on y-axis. How can I avoid the problem? 回答1: What I did to overcome this issue is the following: Instead of have the capsule slide on the

i keep getting the error 'module' object has no attribute 'init' [duplicate]

孤人 提交于 2019-12-17 17:07:29
问题 This question already has answers here : Importing installed package from script raises “AttributeError: module has no attribute” or “ImportError: cannot import name” (2 answers) Closed 3 months ago . Especially when i run it from an external python file and just run it using IDLE or Pycharm..Please Help...but at times it works with in the interactive shell and then something happens and it starts its problems ....I simply typed import pygame x = pygame.init() print(x) C:\Python33\python.exe

i keep getting the error 'module' object has no attribute 'init' [duplicate]

久未见 提交于 2019-12-17 17:06:13
问题 This question already has answers here : Importing installed package from script raises “AttributeError: module has no attribute” or “ImportError: cannot import name” (2 answers) Closed 3 months ago . Especially when i run it from an external python file and just run it using IDLE or Pycharm..Please Help...but at times it works with in the interactive shell and then something happens and it starts its problems ....I simply typed import pygame x = pygame.init() print(x) C:\Python33\python.exe

DirectX/C++ 3D Engine programming: Learn now, or wait for DirectX 12? [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 16:52:40
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm a relatively ok-ish programmer, but my main focus has been in application development with C# so far. I have almost zero experience with game development and 3d engines - I've begun reading up on how 3d Engines work in general, e.g. there was a wonderful guide explaining how

What is the best practice for loading multiple textures in three.js?

浪子不回头ぞ 提交于 2019-12-13 15:49:02
问题 Having recently switched to three.js as my renderer, I am now wanting to set up a system for mapping textures. However, I'm not too sure on what the best practice for this is. Here is my use case I have levels made of a lot of box geometries I need to be able to map a wide variety of textures to each face of each box geometry (grass, water, stone, rock etc.,) I would like to do this in the most efficient, performance conscious way as possible, so offloading this to the GPU would be best if

how i can work programaticly with spell effect in game [closed]

血红的双手。 提交于 2019-12-13 08:47:18
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . how i can work programaticly with spell effect in game i have a effect look like this spell effect i want to know how i can change the cale of the spell . like change color in distance or when u run some this effect goes to transparent and after 10 sec go to fade or look at this

Undefined reference to sdl_function Android Studio

旧时模样 提交于 2019-12-13 07:57:26
问题 I am trying to run my sd l game on Android, I followed lazyfoo's tutorial to run the helloworld , which worked fine, later I imported my project, this project source works fine in windows without any error, but I am now seeing many errors in my files, I am new to android , I feel I have messed up with path's to my source files. below is the error: Android.mk (inside src dir): LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := main SDL_PATH := ../SDL2 LOCAL_C_INCLUDES := $