Thread: Student project (Wolf3d) something strange with fisheye effect

  1. #1
    Registered User
    Join Date
    Oct 2019
    Posts
    3

    Student project (Wolf3d) something strange with fisheye effect

    Hello, I'm student and I'm working on a wolf3d project with SDL2. I have actually a problem with the final rendering. There is no straight walls with the right formula :
    < new distance = wall distance * cos(radian) >
    Screen : Student project (Wolf3d) something strange with fisheye effect-strangewalls-jpg

    I tried some things, I'm actually locked up with it

  2. #2
    Registered User
    Join Date
    Feb 2019
    Posts
    714
    MIP Maps and Antialiasing filters didn't work?

  3. #3
    Registered User
    Join Date
    Oct 2019
    Posts
    3
    It's not about MIP Maps or Antialising

  4. #4
    Registered User
    Join Date
    Aug 2019
    Location
    inside a singularity
    Posts
    306
    Describe your problem... I'm pretty sure I didn't understand what you meant in your question. If it's something related to calculating your distance or finding your field of view etc, have a look at this video. He's done it in text mode but the calculations will mostly be the same.

    YouTube

  5. #5
    Registered User
    Join Date
    Oct 2019
    Posts
    3
    There is the problem :
    Student project (Wolf3d) something strange with fisheye effect-strangewalls-jpg

  6. #6
    Registered User
    Join Date
    Feb 2019
    Posts
    714
    What are the FoV appertures you are using?
    Wider FoV, more distorted you'll get. Games usually uses 90 horiz and 60 vertical to mimic "human eye".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strange effect
    By joaquim in forum Windows Programming
    Replies: 1
    Last Post: 02-06-2014, 09:04 AM
  2. Replies: 17
    Last Post: 11-16-2013, 06:18 PM
  3. Strange effect of braces (K&R chap 1)
    By montka in forum C Programming
    Replies: 5
    Last Post: 06-26-2011, 09:32 AM
  4. Strange effect on scrollbars
    By Niara in forum Windows Programming
    Replies: 1
    Last Post: 09-27-2006, 05:10 AM
  5. student needs help with project
    By josh_wolf in forum C Programming
    Replies: 1
    Last Post: 12-02-2001, 10:19 PM

Tags for this Thread