Jump to content

Search the Community

Showing results for tags 'shadows'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Models
    • Animals
    • Barriers
    • Characters
    • Containers
    • Environments
    • Furniture
    • Props
    • Rocks
    • Vegetation
    • Vehicles
    • Weapons
  • Materials
    • Brick
    • Cartoon
    • Decals
    • Dirt
    • Grass
    • Industrial
    • Medieval
    • Metal
    • Plastic
    • Plaster
    • Rock
    • SciFi
    • Sky
    • Signs
    • Tile
    • Stone
    • Walls
    • Wood
  • Scripts
    • GUI
    • Object
    • Utilities
  • Shaders
    • Post-Processing Effects
    • Surface
  • Sounds
    • Ambience
    • Effects
    • Music
  • Tools
  • BATTLE LEAGUE's Assets
  • BATTLE LEAGUE's Mods

Blogs

There are no results to display.

There are no results to display.

Forums

  • Leadwerks
    • Technical Assistance
    • General Discussion
    • Programming
    • Game Art
    • Suggestion Box
    • Bug Reports
  • Platforms
    • Windows
    • Mac
    • Linux
  • Community
    • Showcase
    • Promotion
    • Off-topic
  • BATTLE LEAGUE's Topics
  • Vec-Tec's Releases
  • Vec-Tec's Topics
  • Forth's Development
  • Forth's Game design
  • Forth's Graphics
  • Forth's Documentation
  • Forth's TODO
  • Forth's IMPORTANT
  • Forth's Screenshots
  • The uncertain world's Game Design
  • The uncertain world's Programming
  • The uncertain world's TODO
  • The uncertain world's Graphics
  • The uncertain world's Screenshots

Categories

  • Records
  • Entity
  • Command Reference
  • Vec3
  • Vec4
  • Script Reference
  • Shader
  • Index
  • Material
  • Object
  • Buffer
  • Asset
  • Font
  • Shape
  • Sound
  • Texture
  • App
  • Context
  • Model
  • Light
  • DirectionalLight
  • PointLight
  • SpotLight
  • Attractor
  • Camera
  • Emitter
  • Listener
  • Pivot
  • Bone
  • Sprite
  • FileSystem
  • Key
  • Source
  • Surface
  • Math
  • AABB
  • dVec3
  • Mat3
  • Mat4
  • Plane
  • Transform
  • Vec2
  • Vec3
  • Vec4
  • Mutex
  • Prefab
  • PickInfo
  • Map
  • Stream
  • System
  • Thread
  • Time
  • Window
  • World
  • Driver
  • SoundDriver
  • GraphicsDriver
  • PhysicsDriver
  • OpenGL2GraphicsDriver
  • OpenGLES2GraphicsDriver
  • OpenALSoundDriver
  • NewtonDynamicsPhysicsDriver
  • Draw
  • Color
  • Blend
  • Joint
  • Debug
  • Component
  • Steamworks
  • LensFlare
  • Vehicle
  • Decal
  • Quat
  • Leaderboard
  • Probe
  • Analytics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Interests

Found 15 results

  1. I have a large world and there are heights exceeding 2000m, this quick code example shows that at a height higher than 660m the shadow disappears but interestingly the stats still say it's being drawn. Can anyone else confirm this? Is there shadow range for the world or something or is this a bug? #include "App.h" using namespace Leadwerks; App::App() : window(NULL), context(NULL), world(NULL), camera(NULL) {} App::~App() { delete world; delete window; } Model* box; Camera* camera; bool wireframe = false; bool App::Start() { window = Window::Create("Shadows",50,50, 1024, 768); window->Show(); context = Context::Create(window); world = World::Create(); DirectionalLight* light = DirectionalLight::Create(); light->SetRotation(35, 35, 35); float offsetY = 670.0f;//Increase to 670.0f and shadow disapears. camera = Camera::Create(); camera->Move(0, 1 + offsetY, -2); box = Model::Box(); box->Move(0, 1 + offsetY, 0); Pivot* centre = Pivot::Create(); int xGrid = 3; int zGrid = 3; int vertIndex = 0; Model* mdl = Model::Create(); Surface* surface = mdl->AddSurface(); for (int z = 0; z < zGrid; z++) { for (int x = 0; x < xGrid; x++) { surface->AddVertex(x, offsetY, z,0,1,0); if (z != 0 && x != 0) { surface->AddTriangle(vertIndex, vertIndex - xGrid, vertIndex - 1); surface->AddTriangle(vertIndex - xGrid, vertIndex - xGrid - 1, vertIndex - 1); } vertIndex++; } } surface->Update(); mdl->UpdateAABB(Entity::LocalAABB | Entity::GlobalAABB); return true; } bool App::Loop() { if (window->KeyHit(Key::Escape) == true) { return false; } if (window->KeyHit(Key::F1) == true) { camera->GetDebugPhysicsMode() == true ? camera->SetDebugPhysicsMode(false) : camera->SetDebugPhysicsMode(true); } if (window->KeyHit(Key::F2) == true) { if (wireframe == true) { camera->SetDrawMode(0); wireframe = false; } else { camera->SetDrawMode(2); wireframe = true; } } Vec3 rot = box->GetRotation(); rot.x += 0.2f; rot.y += 0.2f; rot.z += 0.2f; box->SetRotation(rot); Time::Update(); world->Update(); world->Render(); context->SetBlendMode(Blend::Alpha); context->DrawStats(10.0f, 10.0f, true); context->Sync(true); return true; } EDIT : It seems to be fine in the editor. I have some objects at a Y position of 23000.0
  2. Hi! I have noticed this here and there every once in a while, but now that I'm finally building a map with aesthetics in mind, I think it is time to dig deeper into this. So what is causing this banding with shadows, and how I'm able to prevent it from happening? I understand that it must be some kind of limitation with the engine, but just knowing how to avoid it would be awesome! Thanks again for any tips. Edit. Oh, numerous times I've been asked to send a map for an example. I would, but noobish question... How? What files I should include? Is there an easy way "create" a file that includes everything you need to run a map on another computer? Thanks again.
  3. Not sure is this a bug or just me. But I can't get my models to cast shadows. CSG objects cast shadow. I have no parent objects, I've tested with point light and spot light, with dynamic and static shadows. What am I missing?
  4. Hi, I recently had a lot of fun, playing around with some low poly stuff. Unfortunately a problem occured, I am having pretty often, I haven't found a good fix yet. I dont know, shadow rendering in LW is weird, or I most likley just dont understand it. Look how, the shadow at the leaves of this tree just disappears, after you are 20 meters away: This does not really happen (or at least it does not look as ugly) for this tree: Another example that shows my problem is this. On the right is is how it is rendered in Blender. What I want is kind of the same shadow type, but including an shadow the house is drawing on the ground. And do you see that door? Looks super ugly. I would be glad if sombody can point me towards a solution. I know, that you can take effect on this by calculating the normals, but what settings would you recommend for low poly? To bring it to the point, this is what I want it to look like. I think the funny thing is that the lightning of the scenes below, are "worse" more simplisitc as the one leadwerks includes, but the shadows are consistent on farer distances and fit the low poly style. I need this for creating a good overall look for my project. I am thankful for any documentation, information you can give me for setting up a scene like this in Leadwerks. Thanks for your answers in advance! Markus
  5. I noticed that just recently (4.4) the engine supports terrains as big as 8192x8192 if you Set exterrain=1 in the Leadwerks.cfg Awesome! Im just curious if this affects the terrain detail? Does it simply double the scale of the terrain and therefore reduce the detail by half, or does the resolution remain the same? Also, I read that the engine has not supported terrain shadows since about LE2.5, is this true? Not having terrain shadows is kind of a deal breaker for me, is there any chance this will return in the future? Thank you!
  6. I noticed that suddenly I could not see shadows on 3d-models. After some hairpulling, I noticed that shadows disappear if you group stuff under pivot. Again pivot makes problems that seems NOT to be related at all. This is really annoying. Don't get me wrong, I love so many aspects in Leadwerks, but these times it feels that I'm fighting against the editor more than trying to solve problems with my game or code... But, is this a known problem? Or am I using pivots wrong? Here, same scene with everything grouped under pivot and without.
  7. This is a bug that is found in the new update (4.3). Models with either "Dynamic" or "Static" never cast shadows if it has a parent. By removing the parent and have the model by itself, it casts shadows. Sames goes for CSG brushes. See screenshots:
  8. Hi, I would like to know if it is possible to change the shadow resolution in Lua. Or is this something that can only be done through C++? My SetLightQuality() is at 2 which I believe is the maximum.
  9. I was wondering if this can be fixed without having to change or amend anything in C++ I've set my lighting quality to 2 but have had no change. When I go a little far away from objects that are receiving shadows the shadow seems to have some sort of falloff. Here is an image to show you what I mean, you can see where my mouse cursor is the top of the wall the shadow is disappearing. I am wondering if there is anything I can change in my project to stop this from happening, or if there is some values I can change to makes this effect not so prominent?
  10. Hi all, Firstly sorry for my bad english. I have a problem: How can I fix? thanks. My system: AMD FX-6300 ASUS Nvidia GTX 560 Titan GIGABYTE 990XA-UD3 GSKILL RipjawsX DDR3 8GB All drivers updated..
  11. This is pretty strange. When this collection of barrels are all close together, they appear to be casting a tree-like shadow. To the left of the barrels you can see a single one I moved out of the group, which has the correct shadow. It has to be about that far away to not render the strange tree shadow. There is also a "shadow" line that intersects the entire scene at certain angles, visible in the lower-right. This is not cast by any visual object -- I have no idea where it comes from. I am sending Josh a SVN account on our server to check out the project as this will be much faster than uploading a ZIP file. Hopefully this will be okay. The bug is in Revision 4.
  12. Alright, this seems like a pretty important issue to me. As it is desirable and expected, directional light shadows are culled (not showed/displayed) when the camera is far away from the object: it has to be within the range of 30m or so, as I've seen so far, in order that shadows get rendered (at least with default light quality). However, when camera is set far away from the object, but zooms in so that it appears very near to the object, shadows are not rendered either. If you think about it, that is a highly unrealistic behavior: Imagine a camera that simulates binoculars. If we look through our binoculars, we are supposed to see the object as if it was near us. In that case, we would see shadows it casts if it is lit by the sun, no matter how far away our binoculars from the object actually are. However, with current LE settings it seems not possible to set cast shadow rendering distance based on the camera zoom level (I'm not sure if it's possible at all, btw - I've read some past threads and no one seems to give a definitive answer). So, a simple improvment on the shadow culling calculation - which would consist in inclusion of dividing camera distance by its zoom level - would be an easy modifcation and more than welcome. At least, IMO. P.S. I've tried setting light's quality to max. It does not solve the issue.
  13. I've noticed during the testing, performance is really bad. Whether it's the AI testing level (3-10 FPS), 2 lights+floor+kicking around a box, or a particle emitter with high particle count, as soon as something starts happening it is visibly choppy. It is bogged down from 200 FPS to around 20 FPS with hardly anything going on, and I don't see why that could be, it's not like many unnecessary things are being rendered. (the moving platform level has more lights and moving shadows, unless that's different because the fixed movement path allows the shadows to be buffered) Now my computer is a bit outdated (i7 860 CPU, GTS 450 GPU, 8 GBs of RAM), but it doesn't seem like it should be having this much trouble just from lighting, especially when I can play other games on medium/high graphics with better performance. I'm not sure if this is a general issue, as I've only tried the Linux version, so it very well could be only an issue on that version of the software.
  14. I apologize if this has been asked before (I tried searching, but nothing useful has come up). Anyway, in the editor after I updated Leadwerks, I get this error repeated many times. Basically, my whole scene in the editor has no shadows. Error: Uniform "shadowmapsize" is not a vec2 value. Am I doing something wrong? (I'm not sure if this is bug or a new "feature"). Note that it does work in game with the same shaders and such (except DOF, but i doubt that has anything to do with it).
  15. I just found that if you rotate a box csg, the shadow continues to use a backface culled version instead of updating it.
×
×
  • Create New...