I appreciate you trying to give me Ideas, but i want to keep the original question :)
Type: Posts; User: carlo697
I appreciate you trying to give me Ideas, but i want to keep the original question :)
I understand, but the track to only work with objects, not bones, can track empties and i can parent the empty to the bones, but is best just parent the empties to the bones, and copy the...
I use much python in my game, and the game run at 60fps, so, some scripts are executed 60 times per second, and the logic not amount much, all depend of the methods of you use.
In this moment i...
I can also use empty and parent it to the bones, and get the tranformations of the empty, but i want to keep everything arranged,simple, and with the least number of objects.
That scripts its for a NPC.
When the NPC die, unparent the armature of the dynamic cube, delete the dynamic cube, spawn all objects for the physics of the ragdoll, copy the transformations of the...
Hi, i am making a script for my game, basically spawn objects and put it the transformations of a bone.
for get the bone i use:
I use another object for use in the...
My game have a grab system style half life 2, and I ran into this problem by doing some tests, I did not care much because my game not need soft body.
Why not, make a constraint(without python,...
-The normals of the plane
-Invisible physic activate.
-Invisible material option activate.
I thinks are the normals.
1)Nope, they was not have "no collision", the original file have set all they in static with ghost activate.
(for any reason, the static objects over other objects with physic consume much physic)...
And if one is using the RiggedRagdollNormalGravity.blend:
Just make "no collision" physic type to the purple cubes, the armature need to have rigid body, or the ragdoll freezes in the air.
Your ragdoll have a little bottleneck, I was getting high values of physics:
I discovered that it is caused by objects in the layer 3, the armature and all the little cubes...
If you use python just use the ramdom module and use the random.randint(a, b) function, and apply the result to the world position:
Nope, but is there a test build.
I have experience making big maps, because i`m making a open world game, some small suggestions:
Firts you need divide the terrain in segments.
-Use the LOD system integrated in the new...
Hi, i have a little question about the framerate in the bge.
Why the physics (and i think the logic is affected by this also) accelerates and decelerates with the frame rate(this happens limiting...
You can use animations in the energy of the light, or use the "energy" of lamps variable using python.
If you are using only logic bricks you can use messages.
If the player lost health send a message with the message actuator, and in the HUD scene put to your bar a message sensor, when the bar...
If you export the game using the 32bit version of blender, the file resulting is a 32bit version, the same for the 64bit version.
Just open the 32bit version of blender and export the game using...
No, you not need to make the game again.
2)That line is for get the object owner of the controler.
You can use functions like:
obj.worldPosition = [0,0,1]
You are going just edit a simple line, so just use the default notepad of windows.
Images from my survival game:
Thanks to martin uptis for his water shader.
I have some problems:
1)When a increase the mass of the character, the the character falls slower. I can solve this applying a down force, but why happening this?
2)When i import the character...
The game looks very good! I'm also doing a survival game, but mine does not have procedural worlds.
I hope to see this game when the progress is more advanced!
The models look clean and low poly, but....those normals looks horrible, are very strong and large.
You say the position of the mouse in the 3d space? i think you are using a mouse over any, that sensor have a property in python named: hitPosition, use something like this:
Yes logic bricks are faster, but use only 1 script that manage with only an always sensor can be more faster(and use good methods in the script).
Those are many logic bricks ...i recommend you use a python script to manage things like this.
I am using this build and i have no problem. I am using windows xp professional service pack 2...
With our file:
With my menu:
Blender have a full integration of python.
Is there a module named ConfigParser, is very useful, I use it for things similar to what you need(load the game settings and other stuffs).
Hi, came here for a sand texture use while and....the website is down.......
The performance is amazing, I'm getting only 1-2% of logic.
An error appears in the console, even though everything is working properly.
PD: the error is with your last file.
Use rays or collision detection for detect if the car is colliding, for get the velocity use the getLinearVelocity() with python, and finally for the deformation use shapekeys and use the velocity...
I was talking.....uh..see the image of the post..
were 3 questions ...Make a rotation and movement smoothly(those are 2..) and how apply a force to a object using a specfic axis of another object....
i can't believe this but i got it! :cool:
Exploring for vect in the python api, i I found the getAxisVect()
Is very simple:
target_obj = objeto["target object"]
I guess that's for the rotation, i test and what do is align the object, but how apply the force to the object using an object axis of another object? i need to apply the force, but without align the...
Use a ray, the object cast a ray to the camera.
For the second question, if you use python you can make it, get the distance to the object with getDistanceTo() and scale the object using that value.
I like your gadget, I saw the code and the system for atract the object is basically sdfgeoff what said.
Thanks to Monster and sdfgeoff :cool:, now just i need the second answer ...I think is...
My script only execute 1 time when the clic is pressed, so i have problem implementing the code.
PD: I tried the script with other object and work very good!
Hi, How i can make a Interpolation between two values?(python)
I'm planning on using this on 2 things:
1)I make a grab system for my game, basically:
-A ray is used for get the Object, and...
I guess that have sense, but any idea why the script still use much logic without the lines for make the clipping plane?(logic: more of 50%)
In my game.
With watertexture.py, with the two lines
Even without the lines, the performance decreases.
File of example: 287863
This is a script of martinsh, post.
Why theese lines of watertexture.py cause extreme slowdown?
plane = bgl.Buffer(bgl.GL_DOUBLE, , [-normal,...
The game looks great! maybe you can use this shader for the atmosphere.
If you restart the scene you need to run the code again for to load the values again, you tried it? just attach a message sensor to the script, and when the scene is restarting send the message.
You can also use this build, also brings some fixes and other things.
PD: the LOD of kupoman not is a "addon"(which are installed).
It`s old news, I use it for 6 months using a build but now it`s introduced to the trunk.
For me it is very useful.
Why not make parent to a point light with the character?
Another thing you need is a "dynamic load", basically.
-Divide the terrain in tiles.
-All tiles are stored in a. blend.
-You need a script, that script load those tiles depending on the location...
Why the line:
Cause a extreme slowdown on intel integrated graphics?
With the line:
Without the line:
I have a liitle question about your day/night cycle using the shader of martinsh.
The shader use a big cube with a shader, but...
if you change the mass, the object not going to fall more faster, only changes how it interacts with other objects.
Another thing to do is increase the gravity, and objects that need to fall...
Because are many objects, and create manually a blend file and append the object can take forever.
Thanks, may be useful ...
So, basically i have this script:
for objetos in bpy.data.objects:
This script print in the console the names of the objects. So i want to create a new...
I`m using the kupoman LOD over 4 months ago, maybe you like to try this build(have LOD, area lights, subsurface scattering, etc)?
Its about the performance.
My experience with the replaceMesh is that when used the framerate down(obviously in low pc, like mine) and this increases with the number of objects in the scene.
You know, use the replaceMesh() function(or the logic brik) for a LOD is a very bad idea.
Here are some pictures of my survival game.
Looking at the sun.
Looking at the.....floor?
Actually the game run at 26fps...without SSAO, with shadows set to...
Calculate the normals: Control + N
Calculate and invert the normals :Control + Shift + N
And activate the backface culling in the viewport to see if the normals are correct.
Invert the normals, maybe is that.
Maybe This, or This and This.
Maybe you can try with this build(have the area lamps patch).
You need to create the variable: "very", before use it. Check the agoose77 message.
First you need to activate the option: "Object Color" in the material settings. For the script use the color variable.
I think this is in the right thread, he is looking for help.
The images are not from google, google shows you the image of a direction.
if you find a texture, image in google check out the page that upload that and check the license that has.
if you take...
The kupoman lod not change the object(I think that you uses sarcasm..), only the mesh. SolarLune also mentioned it.
A api for python scripting would be good, but I would not ask more ;)
The demo blend of the script have the mousemove.py file in a external location, You need to place this file in the same location as the. exe. Sorry english.
You need to make the character only moves when you touch the ground, use a collision sensor attached to the logic bricks of the movement. Sorry english.
Very good, i`m using the lod of kupoman for months(using the build od HG1), I not discovered any errors, I'm glad to hear that will be introduced in the trunk, I am also looking forward to the...
I really like the game progress based on the new photos I saw on ModDB. Sorry english.
This would go in Game Engine Resources and i want to see the script when you upload it!(i am making a game that need a inventory, although not yet reached that part) sorry english.
Please read The GPL Answer Thread in Game Engine Support and Discussion, sorry english.
It is difficult to explain, the backface culling cause this problem, if you deactivate the backface culling in the stove or fill the model the shadows works.
The cont.activate(actuator) use a string, try replace the cont.activate(actuator), with cont.activate("Name of the actuator")
i cancel one of the games I was doing and this is a new one.
Is one of survival(is not of zombies...).
Sorry, I have decided to cancel this project at the moment, It is not only the loss of information(with the damaged hard drive, is the second time of i lost the information of the same game), A few...
I can make an example, but for 2.69.
Not is nesessary use python, you can use the logic brick "armature" for activate the ragdoll, and the ragdoll its made with constraints. Sorry english.
With respect to the exe, maybe you need to see dead cyborg: http://www.deadcyborg.com/download.html, see the exe of the game.
I forget to say this, a more simple solution is parent a point light to the object.
The indirect lighting is a technique for raytrace, not work in the game engine, is there a technique for games named: SSGI (Realtime Indirect Global Lighting), the user martinsh create a shader for...
Uhh, if you are talking aout stencils, you can use this ADDON (normal map work with this). Sorry english.
it's worse than I thought, I discovered that the last backup is more than 4 months, and has only a few walls map and the firts person setup :no:...i dont know if leave the project or continue. Sorry...
damaged hard drive ...for more than 3 weeks ago.
Maybe this can help you: http://blenderartists.org/forum/showthread.php?291532-Third-Person-Shooter-Movement-Example-File
I use this build: http://blenderartists.org/forum/showthread.php?289612-Blender-2-69-1-r60969-V11-1-BGE-Patches-BugFixes its very good, have a lod system, area lights and many other features, but is...
.....A easy way is use a property:
A key is activated? the property: "movement" is True.
Is deactivate? the property: "movement" is False
And the character only can move when the property:...
-You are using the camera? (the standalone use the camera)
-Maybe is the resolution, try use 800x600
You can share more information? maybe a .blend. Sorry english.
Use the scene actuator:
uhh, in the build of blender i use, the generate mode not work, try use tangent or UV. Sorry english.
PD: you not packed the textures and you need to use the compress option when you save the...
Working on the restroom!
(Screenshot in realtime)
-AO is baked
-The Shadows are in realtime.
If dont work, upload a file of example.
Its name backface culling:
For a solid object you need to recalculate the normals, if you object is only a plane, deactivate the option backface culling in the material tab(with...
maybe keep this in mind :eyebrowlift:
I'm back! I was very busy the last 2 weeks, exams and that type of things.
the story is not finished, I have the beginning, the Ideas are accepted!!