Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
OpenGL Koch Curve: Fixed and Rendering Well
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Initialize list in functi...
by
ALLIGATOR
[
Today
at 04:01:30 am]
Parsing command line stri...
by
Thausand
[
Today
at 02:46:56 am]
head hurting - DBGrid Wor...
by
robertom
[
Today
at 01:52:08 am]
CustomDraw package compil...
by
wp
[
Today
at 01:00:02 am]
Anyone interested in help...
by
ad1mt
[
Today
at 12:27:45 am]
How detect a keypress in ...
by
ad1mt
[
Today
at 12:06:30 am]
TScrollBox ScrollBy Metho...
by
andrew Bubble
[November 07, 2025, 11:54:17 pm]
synedit
by
Martin_fr
[November 07, 2025, 11:33:18 pm]
Distance of gridlines in ...
by
wp
[November 07, 2025, 07:50:35 pm]
Get Out of Squircle Jail ...
by
msintle
[November 07, 2025, 07:08:30 pm]
FPC 3.2.4-rc1 available
by
pleumann
[November 07, 2025, 06:53:04 pm]
OPCB – Object Pascal Comp...
by
fabianoallex
[November 07, 2025, 06:51:39 pm]
Blog area?
by
TBMan
[November 07, 2025, 03:57:17 pm]
MOSAIC - free terrain mak...
by
Tomi
[November 07, 2025, 02:09:39 pm]
Lazarus portable?
by
parcel
[November 07, 2025, 02:04:35 pm]
TLazSerial : serial port ...
by
CM630
[November 07, 2025, 01:45:15 pm]
paszlib. Determine if ext...
by
Thaddy
[November 07, 2025, 01:35:11 pm]
How to turn OFF Word Wrap...
by
Thaddy
[November 07, 2025, 01:03:43 pm]
Code improvement, suggest...
by
ALLIGATOR
[November 07, 2025, 11:54:58 am]
[CLOSED] WebView4Delphi q...
by
egsuh
[November 07, 2025, 06:00:34 am]
Build FCP with WinCE cros...
by
dbannon
[November 07, 2025, 12:44:36 am]
[SOLVED] Where are my Uni...
by
tfurnivall
[November 07, 2025, 12:05:13 am]
32 team NFL schedule for ...
by
TBMan
[November 06, 2025, 10:29:10 pm]
Strange result of text so...
by
PascalDragon
[November 06, 2025, 08:58:36 pm]
Raising an exception with...
by
PascalDragon
[November 06, 2025, 08:29:26 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenGL Koch Curve: Fixed and Rendering Well (Read 884 times)
Boleeman
Hero Member
Posts: 1001
OpenGL Koch Curve: Fixed and Rendering Well
«
on:
September 21, 2024, 02:38:12 am »
Tried to convert an OpenGL Koch Curve fractal code from Delphi
Got an external access violation error.
I was rendering to the form canvas and not to the OpenGL control.
«
Last Edit: September 21, 2024, 05:27:14 pm by Boleeman
»
Logged
Boleeman
Hero Member
Posts: 1001
Re: OpenGL Rainbow Koch Curve: External Access Error
«
Reply #1 on:
September 21, 2024, 03:47:22 am »
I replaced
dglOpenGL
with
GL
in uses and got rid of dglOpenGL.pas in Project inspector and now I don't have the access violation error. It compiles OK
I get a Yellow Koch Curve, but it is flashing.
«
Last Edit: September 21, 2024, 03:52:11 am by Boleeman
»
Logged
Lulu
Sr. Member
Posts: 330
Re: OpenGL Koch Curve: Problems
«
Reply #2 on:
September 21, 2024, 10:18:28 am »
Hi, at the end of the FormPaint method, if you replace Refresh by Invalidate there is no flashing.
Tested on windows 10.
There is another problem: the app don't stop if I click on the red cross at top-right of the windows.
Logged
wishing you a nice life!
GitHub repositories
https://github.com/Lulu04
Boleeman
Hero Member
Posts: 1001
Re: OpenGL Koch Curve: Problems
«
Reply #3 on:
September 21, 2024, 11:17:08 am »
Thanks Lulu for the reply.
I worked out that I was not rendering to the OpenGL control, but to the Form1 canvas.
Now it is all fixed and working well.
«
Last Edit: September 21, 2024, 05:29:18 pm by Boleeman
»
Logged
Lulu
Sr. Member
Posts: 330
Re: OpenGL Koch Curve: Problems
«
Reply #4 on:
September 21, 2024, 07:09:16 pm »
Quote from: Boleeman on September 21, 2024, 11:17:08 am
I worked out that I was not rendering to the OpenGL control, but to the Form1 canvas.
I didn't realise it either
Logged
wishing you a nice life!
GitHub repositories
https://github.com/Lulu04
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
OpenGL Koch Curve: Fixed and Rendering Well
TinyPortal
© 2005-2018