Coder Social home page Coder Social logo

libfov's People

Watchers

 avatar

libfov's Issues

Computing FoV for any orientation

What version of the product are you using? On what operating system?

I have downloaded the latest version of libfov (1.0.4) and am using it on 
32-bit linux (2.6.34).

Please provide any additional information below.

While using a beam for shadow-casting it seems that the beam is always oriented 
in one of the eight cardinal directions. How can I specify that the beam angle 
is say 120 degrees and it is oriented at 30 degrees from North?

Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 10:18

libfov cannot built out-of-tree

libfov cannot be build from outside the source tree, because the library is 
looked for in srcdir (instead of builddir) when linking `tests` and `examples`. 
Doxygen also has issues.

I have attached a patch.

Note: docs/Doxyfile must be moved to docs/Doxyfile.in before applying.

Original issue reported on code.google.com by [email protected] on 19 Jul 2014 at 8:38

Attachments:

Return statement missing ?

if (angle <= 0.0f) {
  return;
} else if (angle >= 360.0f) {
  _fov_circle(&data);
}

i think it should be this:

if (angle <= 0.0f) {
  return;
} else if (angle >= 360.0f) {
  _fov_circle(&data);
  return;
}

Original issue reported on code.google.com by [email protected] on 9 Jun 2008 at 12:30

Valgrind

Add Valgrind build tasks and fix any problems

Original issue reported on code.google.com by [email protected] on 9 Jun 2008 at 12:33

Move simple demo to ncurses

Currently there is 1 demo and it uses SDL. Make it use ncurses for people
who are targeting ncurses because they won't necessarily have or want SDL
installed.

Original issue reported on code.google.com by [email protected] on 9 Jun 2008 at 3:22

Comparison of uninitialized variable

Vagrind reported this:
==29143== Conditional jump or move depends on uninitialised value(s)
==29143== at 0x80C21D0: fov_settings_free (fov.c:163)

I noticed that the the fov_settings_free() is comparing the value of
settings->heights, and it has not been initialized in the
fov_settings_init() to it causes Valgrind to report it. Simple fix is to
initialize it to NULL in the fov_settings_init():

--- fov.c (revision ??)
+++ fov.c (working copy)
@@ -81,6 +81,7 @@
settings->opaque_apply = FOV_OPAQUE_APPLY;
settings->opaque = NULL;
settings->apply = NULL;
+ settings->heights = NULL;
settings->numheights = 0;
}

This bug is not visible to users, as on the same line settings->numheights
value is compared, which makes the function work correctly. But it would be
nice to fix this to cleanup the Valgrind output to see the real problems.

Original issue reported on code.google.com by [email protected] on 9 Jun 2008 at 12:32

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.